Skip to content
Snippets Groups Projects
Verified Commit dd11188d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix muting spaces

parent 415f097b
No related branches found
No related tags found
No related merge requests found
Pipeline #3363 failed
......@@ -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")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment