aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index c7bf0208..9ed3f3d1 100644
--- a/room.cpp
+++ b/room.cpp
@@ -497,7 +497,9 @@ QString Room::Private::roomNameFromMemberNames(const QList<User *> &userlist) co
first_two.begin(), first_two.end(),
[this](const User* u1, const User* u2) {
// Filter out the "me" user so that it never hits the room name
- return u1 != connection->user() && u1->id() < u2->id();
+ if( u1 == connection->user() || u2 == connection->user() )
+ return u2 == connection->user();
+ return u1->id() < u2->id();
}
);