diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-24 19:49:31 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-24 19:49:31 +0900 |
commit | be336237914ae4517e21f6e82d6c6facf16660d8 (patch) | |
tree | f0ee020cafc117817d5931b7db8853a91cc9bea6 /room.h | |
parent | 2c095d29b96393dcfa3121c8cb9f4c4fd4f88d6a (diff) | |
parent | e10927767faaf7a03a772ab97fe6292907cc4b4b (diff) | |
download | libquotient-be336237914ae4517e21f6e82d6c6facf16660d8.tar.gz libquotient-be336237914ae4517e21f6e82d6c6facf16660d8.zip |
Merge branch 'kitsune-room-specific-userinfo'
Diffstat (limited to 'room.h')
-rw-r--r-- | room.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -301,6 +301,7 @@ namespace QMatrixClient void avatarChanged(); void userAdded(User* user); void userRemoved(User* user); + void memberAboutToRename(User* user, QString newName); void memberRenamed(User* user); void memberListChanged(); @@ -345,12 +346,13 @@ namespace QMatrixClient explicit MemberSorter(const Room* r) : room(r) { } bool operator()(User* u1, User* u2) const; + bool operator()(User* u1, const QString& u2name) const; - template <typename ContT> + template <typename ContT, typename ValT> typename ContT::size_type lowerBoundIndex(const ContT& c, - typename ContT::value_type v) const + const ValT& v) const { - return std::lower_bound(c.begin(), c.end(), v, *this) - c.begin(); + return std::lower_bound(c.begin(), c.end(), v, *this) - c.begin(); } private: |