diff options
-rw-r--r-- | lib/connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 48d3a532..017180c4 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -599,7 +599,8 @@ void Connection::doInDirectChat(User* u, for (auto it = removals.cbegin(); it != removals.cend(); ++it) { d->directChats.remove(it.key(), it.value()); - d->directChatUsers.remove(it.value(), it.key()); + d->directChatUsers.remove(it.value(), + const_cast<User*>(it.key())); // FIXME } d->broadcastDirectChatUpdates({}, removals); } |