diff options
author | Felix Rohrbach <fxrh@gmx.de> | 2016-09-15 02:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-15 02:51:03 +0200 |
commit | c8a34813a551752bf647a0c91a6ee37c95e50251 (patch) | |
tree | a90054ab6a44fd9d63c6143a4290bf54bc041e92 /room.cpp | |
parent | d1dfe71769accc391a0a722bd4627b2d18389874 (diff) | |
parent | 51ebad8717dcda968dc30195d98545b4091ad251 (diff) | |
download | libquotient-c8a34813a551752bf647a0c91a6ee37c95e50251.tar.gz libquotient-c8a34813a551752bf647a0c91a6ee37c95e50251.zip |
Merge pull request #28 from Fxrh/correct-roomname-by-usernames
Correct user sorting for room name creation
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -497,7 +497,8 @@ 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(); + return u2 == connection->user() || + (u1 != connection->user() && u1->id() < u2->id()); } ); |