From bbbd9eda00bd428f3404a60644431c97bac99c8d Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 21 May 2020 22:04:23 +0200 Subject: [PATCH] Fix crash in clear_all_chat_states (it removed an entry from a HashMap while iterating over it) --- libdino/src/service/counterpart_interaction_manager.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdino/src/service/counterpart_interaction_manager.vala b/libdino/src/service/counterpart_interaction_manager.vala index 5102bdf9..10fbacd6 100644 --- a/libdino/src/service/counterpart_interaction_manager.vala +++ b/libdino/src/service/counterpart_interaction_manager.vala @@ -86,8 +86,9 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object { foreach (Conversation conversation in typing_since.keys) { if (conversation.account.equals(account)) { foreach (Jid jid in typing_since[conversation].keys) { - clear_chat_state(conversation, jid); + received_state(conversation, Xmpp.Xep.ChatStateNotifications.STATE_ACTIVE); } + typing_since[conversation].clear(); } } }