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:
Joshua Goins
2025-05-24 14:04:37 -04:00
parent 2f87b1f398
commit a0e8039d92
3 changed files with 14 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ Controller::Controller(QObject *parent)
MessageModel::setHiddenFilter(hiddenEventFilter);
RoomListModel::setHiddenFilter(hiddenEventFilter);
RoomTreeModel::setHiddenFilter(hiddenEventFilter);
NeoChatRoom::setHiddenFilter(hiddenEventFilter);
MediaSizeHelper::setMaxSize(NeoChatConfig::mediaMaxWidth(), NeoChatConfig::mediaMaxHeight());
connect(NeoChatConfig::self(), &NeoChatConfig::MediaMaxWidthChanged, this, []() {