aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/room.cpp b/room.cpp
index 06041090..762e929c 100644
--- a/room.cpp
+++ b/room.cpp
@@ -1452,6 +1452,12 @@ QString Room::Private::roomNameFromMemberNames(const QList<User *> &userlist) co
}
);
+ // Spec extension. A single person in the chat but not the local user
+ // (the local user is apparently invited).
+ if (userlist.size() == 1 && !isLocalUser(first_two.front()))
+ return tr("Invitation from %1")
+ .arg(q->roomMembername(first_two.front()));
+
// i. One-on-one chat. first_two[1] == localUser() in this case.
if (userlist.size() == 2)
return q->roomMembername(first_two[0]);