mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-22 10:07:31 +00:00
core: fix feed members query for postgres (#7495)
* support bot: strip all whitespace after /broadcast * core: fix missing space in feed members query
This commit is contained in:
3 files changed
+7
-1
No files matched your search
@@ -857,7 +857,7 @@ export class SupportBot {
|
||||
await this.sendToGroup(teamGroupId, `Error: contact ${senderContactId} is not allowed to broadcast`)
|
||||
return
|
||||
}
|
||||
const text = (util.ciContentText(chatItem)?.trim() ?? "").replace(/^\/broadcast\s?/, "")
|
||||
const text = (util.ciContentText(chatItem)?.trim() ?? "").replace(/^\/broadcast\s*/, "")
|
||||
if (text === "") {
|
||||
await this.sendToGroup(teamGroupId, "Error: broadcast text is empty")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user