aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 772d9f58..dab30749 100644
--- a/room.cpp
+++ b/room.cpp
@@ -324,6 +324,11 @@ QString Room::roomMembername(User *u) const
return username % " <" % u->id() % ">";
}
+QString Room::roomMembername(QString userId) const
+{
+ return roomMembername(connection()->user(userId));
+}
+
void Room::addMessage(Event* event)
{
processMessageEvent(event);
@@ -398,7 +403,7 @@ void Room::Private::getPreviousContent()
}
}
-Connection* Room::connection()
+Connection* Room::connection() const
{
return d->connection;
}