aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-05-21 22:04:23 +0200
committerfiaxh <git@lightrise.org>2020-05-21 22:04:46 +0200
commitbbbd9eda00bd428f3404a60644431c97bac99c8d (patch)
tree8b1509178fb5249ff7ae6b56a66b217a54c86931
parent06177701bfb3821f81c6ac35109f32cf55cd5ab9 (diff)
downloaddino-bbbd9eda00bd428f3404a60644431c97bac99c8d.tar.gz
dino-bbbd9eda00bd428f3404a60644431c97bac99c8d.zip
Fix crash in clear_all_chat_states (it removed an entry from a HashMap while iterating over it)
-rw-r--r--libdino/src/service/counterpart_interaction_manager.vala3
1 files changed, 2 insertions, 1 deletions
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();
}
}
}