mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Detect MUC history correctly with some Prosody versions
Some versions of prosody send the domainpart. See https://issues.prosody.im/1416 Workaround to handle those cases. Thanks to Holger Weiss for helping with this! Fix https://github.com/profanity-im/profanity/issues/1190
This commit is contained in:
parent
6161235733
commit
6ab6fe8649
@ -823,7 +823,9 @@ _handle_groupchat(xmpp_stanza_t *const stanza)
|
||||
// determine if the notifications happened whilst offline
|
||||
gchar *from;
|
||||
message->timestamp = stanza_get_delay_from(stanza, &from);
|
||||
if (message->timestamp && g_strcmp0(jid->barejid, from) == 0) {
|
||||
// checking the domainpart is a workaround for some prosody versions (gh#1190)
|
||||
if (message->timestamp && (g_strcmp0(jid->barejid, from) == 0
|
||||
|| g_strcmp0(jid->domainpart, from) == 0)) {
|
||||
sv_ev_room_history(message);
|
||||
} else {
|
||||
sv_ev_room_message(message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user