Skip to content
Snippets Groups Projects
Verified Commit 1b1ccb79 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes crash on core 0.14

parent f6156d7b
No related branches found
No related tags found
No related merge requests found
/*
* Quasseldroid - Quassel client for Android
*
* Copyright (c) 2019 Janne Mareike Koschinski
* Copyright (c) 2019 The Quassel Project
* Copyright (c) 2020 Janne Mareike Koschinski
* Copyright (c) 2020 The Quassel Project
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3 as published
......@@ -289,7 +289,7 @@ class IrcChannel(
_userModes.remove(ircuser)
ircuser.partChannel(this)
if (network().isMe(ircuser) || _userModes.isEmpty()) {
for (user in _userModes.keys) {
for (user in _userModes.keys.toList()) {
user.partChannel(this)
}
_userModes.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment