diff options
author | Paul Fariello <paul@fariello.eu> | 2019-04-01 20:39:39 +0320 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 17:23:46 +0200 |
commit | e69f947547160ea2c965a3d4f5966c5f4a289340 (patch) | |
tree | ebb71704f3ce98fdb9494dfcfb1b555dc2d212ce /src/ui/window.c | |
parent | e7be3a605bbb47e462265a379d48aad9cc565fc2 (diff) | |
download | profani-tty-e69f947547160ea2c965a3d4f5966c5f4a289340.tar.gz |
Rework MUC reflected message filtering
Reflected messages can't be filtered by nick only otherwise you might ignore messages comming from you on another devices. Consequently we maintain a list of sent messages id in mucwin. To be sure the id will be correctly reflected we use the origin-id stanza.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 64b04365..12b6c15b 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -198,6 +198,7 @@ win_create_muc(const char *const roomjid) new_win->enctext = NULL; new_win->message_char = NULL; new_win->is_omemo = FALSE; + new_win->sent_messages = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL); new_win->memcheck = PROFMUCWIN_MEMCHECK; |