diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-13 20:28:56 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-13 20:28:56 +0900 |
commit | fadce11be92abe76cecfe6356b3b38f25dd93e8d (patch) | |
tree | 4bbe8263daeec7cd5ac3ff1366cdb23c03aab8d9 /lib/room.cpp | |
parent | 18cb395868f448a34dacd55a0b7b5c5eb9f06e27 (diff) | |
download | libquotient-fadce11be92abe76cecfe6356b3b38f25dd93e8d.tar.gz libquotient-fadce11be92abe76cecfe6356b3b38f25dd93e8d.zip |
Support for server notices rooms (MSC1452)
Closes #326.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index f70e0b0e..bee9e9cb 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -951,6 +951,11 @@ bool Room::isFavourite() const { return d->tags.contains(FavouriteTag); } bool Room::isLowPriority() const { return d->tags.contains(LowPriorityTag); } +bool Room::isServerNoticeRoom() const +{ + return d->tags.contains(ServerNoticeTag); +} + bool Room::isDirectChat() const { return connection()->isDirectChat(id()); } QList<User*> Room::directChatUsers() const |