summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-07-16 12:03:03 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-07-16 12:03:03 +0200
commitdd11188dffd738cf2bfa8a7fd168fd5cdb46247c (patch)
treeadcbc30740345bd1741e886a3d841067a25e54fe /src/timeline
parentAdd missing include (diff)
downloadnheko-dd11188dffd738cf2bfa8a7fd168fd5cdb46247c.tar.xz
Fix muting spaces
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/CommunitiesModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/CommunitiesModel.cpp b/src/timeline/CommunitiesModel.cpp
index 75f878c0..7b267bcb 100644
--- a/src/timeline/CommunitiesModel.cpp
+++ b/src/timeline/CommunitiesModel.cpp
@@ -627,12 +627,12 @@ CommunitiesModel::toggleTagMute(QString tagId)
     if (tagId.startsWith(QLatin1String("tag:"))) {
         auto idx = tags_.indexOf(tagId.mid(4));
         if (idx != -1)
-            emit dataChanged(index(idx + 1 + spaceOrder_.size()),
-                             index(idx + 1 + spaceOrder_.size()));
+            emit dataChanged(index(idx + 2 + spaceOrder_.size()),
+                             index(idx + 2 + spaceOrder_.size()));
     } else if (tagId.startsWith(QLatin1String("space:"))) {
         auto idx = spaceOrder_.indexOf(tagId.mid(6));
         if (idx != -1)
-            emit dataChanged(index(idx + 1), index(idx + 1));
+            emit dataChanged(index(idx + 2), index(idx + 2));
     } else if (tagId == QLatin1String("dm")) {
         emit dataChanged(index(1), index(1));
     } else if (tagId == QLatin1String("global")) {