Give NeoChatRoom the hidden filter for last event cache
Otherwise we keep state events and other unwanted events in the cache (if the user turned these off.)
This commit is contained in:
@@ -587,6 +587,8 @@ public:
|
||||
*/
|
||||
Q_INVOKABLE QString rootIdForThread(const QString &eventId) const;
|
||||
|
||||
static void setHiddenFilter(std::function<bool(const Quotient::RoomEvent *)> hiddenFilter);
|
||||
|
||||
private:
|
||||
bool m_visible = false;
|
||||
|
||||
@@ -618,6 +620,7 @@ private:
|
||||
void cleanupExtraEvent(const QString &eventId);
|
||||
|
||||
std::unordered_map<QString, std::unique_ptr<NeochatRoomMember>> m_memberObjects;
|
||||
static std::function<bool(const Quotient::RoomEvent *)> m_hiddenFilter;
|
||||
|
||||
private Q_SLOTS:
|
||||
void updatePushNotificationState(QString type);
|
||||
|
||||
Reference in New Issue
Block a user