Fix crash in clear_all_chat_states (it removed an entry from a HashMap while iterating over it)
This commit is contained in:
parent
06177701bf
commit
bbbd9eda00
|
@ -86,8 +86,9 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object {
|
||||||
foreach (Conversation conversation in typing_since.keys) {
|
foreach (Conversation conversation in typing_since.keys) {
|
||||||
if (conversation.account.equals(account)) {
|
if (conversation.account.equals(account)) {
|
||||||
foreach (Jid jid in typing_since[conversation].keys) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue