Fix crash in clear_all_chat_states (it removed an entry from a HashMap while iterating over it)

This commit is contained in:
fiaxh 2020-05-21 22:04:23 +02:00
parent 06177701bf
commit bbbd9eda00

View file

@ -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();
}
}
}