diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-16 03:07:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-16 03:07:00 +0200 |
commit | 7b33d14277c3a3ca3db9bf1415c1a7372645b8e1 (patch) | |
tree | 489e39931b4db902bcbd862eac8e88745469cd6f /src/timeline/RoomlistModel.h | |
parent | WIP (diff) | |
download | nheko-7b33d14277c3a3ca3db9bf1415c1a7372645b8e1.tar.xz |
Make notification count calculation more efficient
Diffstat (limited to '')
-rw-r--r-- | src/timeline/RoomlistModel.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/timeline/RoomlistModel.h b/src/timeline/RoomlistModel.h index cf2b45d8..61bf2e7c 100644 --- a/src/timeline/RoomlistModel.h +++ b/src/timeline/RoomlistModel.h @@ -105,7 +105,7 @@ public slots: return -1; } - void joinPreview(QString roomid, QString parentSpace); + void joinPreview(QString roomid); void acceptInvite(QString roomid); void declineInvite(QString roomid); void leave(QString roomid, QString reason = ""); @@ -169,11 +169,7 @@ public slots: { return mapFromSource(roomlistmodel->index(roomlistmodel->roomidToIndex(roomid))).row(); } - void joinPreview(QString roomid) - { - roomlistmodel->joinPreview(roomid, - filterType == FilterBy::Space ? filterStr : QLatin1String("")); - } + void joinPreview(QString roomid) { roomlistmodel->joinPreview(roomid); } void acceptInvite(QString roomid) { roomlistmodel->acceptInvite(roomid); } void declineInvite(QString roomid) { roomlistmodel->declineInvite(roomid); } void leave(QString roomid, QString reason = "") { roomlistmodel->leave(roomid, reason); } |