diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp index db8bb085..e4e622a3 100644 --- a/connection.cpp +++ b/connection.cpp @@ -702,6 +702,12 @@ bool Connection::isDirectChat(const QString& roomId) const return d->directChats.key(roomId) != nullptr; } +QList<const User*> Connection::directChatUsers(const Room* room) const +{ + Q_ASSERT(room != nullptr); + return d->directChats.keys(room->id()); +} + QMap<QString, User*> Connection::users() const { return d->userMap; |