simple cli console for remote repeater management

This commit is contained in:
liamcottle 2025-02-27 17:48:19 +13:00
parent e4577c40ff
commit 32928e3a96
2 changed files with 113 additions and 26 deletions

View file

@ -654,7 +654,7 @@ class Connection extends EventEmitter {
});
}
sendTextMessage(contactPublicKey, text) {
sendTextMessage(contactPublicKey, text, type) {
return new Promise(async (resolve, reject) => {
try {
@ -677,7 +677,7 @@ class Connection extends EventEmitter {
this.once(Constants.ResponseCodes.Err, onErr);
// compose message
const txtType = Constants.TxtTypes.Plain;
const txtType = type ?? Constants.TxtTypes.Plain;
const attempt = 0;
const senderTimestamp = Math.floor(Date.now() / 1000);