diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-29 13:26:36 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-30 15:38:56 +0900 |
commit | 460aa0350c22312829d3e2a3d8556221b3f89173 (patch) | |
tree | 8e02863e93cd07644a9558a1b8341b436fcc7265 /lib/user.h | |
parent | 3d13e32530990569a418449c86d9848fd71490e4 (diff) | |
download | libquotient-460aa0350c22312829d3e2a3d8556221b3f89173.tar.gz libquotient-460aa0350c22312829d3e2a3d8556221b3f89173.zip |
Room::processStateEvent, User: take the previous membership state from oldStateEvent
memberJoinState() just happens to return the not-yet-updated state,
making its use around state changes very sensitive to moving things
around. The event's own prevContent is unsigned, therefore untrusted.
Diffstat (limited to 'lib/user.h')
-rw-r--r-- | lib/user.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -105,7 +105,11 @@ namespace QMatrixClient QString avatarMediaId(const Room* room = nullptr) const; QUrl avatarUrl(const Room* room = nullptr) const; - void processEvent(const RoomMemberEvent& event, const Room* r); + /// This method is for internal use and should not be called + /// from client code + // FIXME: Move it away to private in lib 0.6 + void processEvent(const RoomMemberEvent& event, const Room* r, + bool firstMention); public slots: /** Set a new name in the global user profile */ |