Don't render (all) delayed messages as MUC history
Double-check that a <delay/> tag on a groupchat message was actually added by the MUC service (rather than the sending client) before assuming it was received from the MUC history. Fixes #1173.
This commit is contained in:
@@ -267,6 +267,7 @@ xmpp_stanza_t* stanza_create_mediated_invite(xmpp_ctx_t *ctx, const char *const
|
||||
gboolean stanza_contains_chat_state(xmpp_stanza_t *stanza);
|
||||
|
||||
GDateTime* stanza_get_delay(xmpp_stanza_t *const stanza);
|
||||
GDateTime* stanza_get_delay_from(xmpp_stanza_t *const stanza, gchar **from);
|
||||
|
||||
gboolean stanza_is_muc_presence(xmpp_stanza_t *const stanza);
|
||||
gboolean stanza_is_muc_self_presence(xmpp_stanza_t *const stanza,
|
||||
|
||||
Reference in New Issue
Block a user