| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-11-10 17:34:01 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-11-16 14:55:03 UTC |
| parent | f5857f75d770c1cdfc6035b1929e83f54028c946 |
| borogove/Chat.hx | +5 | -2 |
diff --git a/borogove/Chat.hx b/borogove/Chat.hx index e8f39a8..8d993d0 100644 --- a/borogove/Chat.hx +++ b/borogove/Chat.hx @@ -1206,7 +1206,7 @@ class DirectChat extends Chat { if (before != null && before.chatId() != chatId) throw "Cannot look before from a different chat"; return persistence.getMessagesBefore(client.accountId(), chatId, before).then((messages) -> - if (messages.length > 0 || (before != null && before.serverId == null)) { + if (messages.length > 0 || (before != null && before.serverId == null) || counterparts().length > 1) { Promise.resolve(messages); } else { var filter:MAMQueryParams = { with: this.chatId }; @@ -1232,7 +1232,7 @@ class DirectChat extends Chat { } return persistence.getMessagesAfter(client.accountId(), chatId, after).then((messages) -> - if (messages.length > 0 || (after != null && after.serverId == null)) { + if (messages.length > 0 || (after != null && after.serverId == null) || counterparts().length > 1) { Promise.resolve(messages); } else { var filter:MAMQueryParams = { with: this.chatId }; @@ -1461,6 +1461,9 @@ class DirectChat extends Chat { } } + // We don't have a way to bookmark a multiDM + if (counterparts().length > 1) return; + stream.sendIq( stanza, (response) -> {