| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-22 19:15:05 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-22 19:15:05 UTC |
| parent | 35bb43e760bac69fc13bbfb7bfc645565ed53adc |
| borogove/Client.hx | +6 | -1 |
diff --git a/borogove/Client.hx b/borogove/Client.hx index 8d3af76..103ffd2 100644 --- a/borogove/Client.hx +++ b/borogove/Client.hx @@ -529,7 +529,12 @@ class Client extends EventEmitter { case MucInviteStanza(serverId, serverIdBy, reason, password): mucInvite(message.chatId, getChat(message.chatId), message.senderId, message.threadId, serverId, serverIdBy, reason, password); case SubjectStanza(subject): - getChat(message.chatId)?.setThreadSubject(message.threadId, subject); + final chat = getChat(message.chatId); + if (chat != null) { + chat.setThreadSubject(message.threadId, subject); + persistence.storeChats(accountId(), [chat]); + this.trigger("chats/update", [chat]); + } default: // ignore trace("Ignoring non-chat message: " + stanza.toString());