mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix muting spaces
This commit is contained in:
parent
415f097b9c
commit
dd11188dff
1 changed files with 3 additions and 3 deletions
|
@ -627,12 +627,12 @@ CommunitiesModel::toggleTagMute(QString tagId)
|
||||||
if (tagId.startsWith(QLatin1String("tag:"))) {
|
if (tagId.startsWith(QLatin1String("tag:"))) {
|
||||||
auto idx = tags_.indexOf(tagId.mid(4));
|
auto idx = tags_.indexOf(tagId.mid(4));
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
emit dataChanged(index(idx + 1 + spaceOrder_.size()),
|
emit dataChanged(index(idx + 2 + spaceOrder_.size()),
|
||||||
index(idx + 1 + spaceOrder_.size()));
|
index(idx + 2 + spaceOrder_.size()));
|
||||||
} else if (tagId.startsWith(QLatin1String("space:"))) {
|
} else if (tagId.startsWith(QLatin1String("space:"))) {
|
||||||
auto idx = spaceOrder_.indexOf(tagId.mid(6));
|
auto idx = spaceOrder_.indexOf(tagId.mid(6));
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
emit dataChanged(index(idx + 1), index(idx + 1));
|
emit dataChanged(index(idx + 2), index(idx + 2));
|
||||||
} else if (tagId == QLatin1String("dm")) {
|
} else if (tagId == QLatin1String("dm")) {
|
||||||
emit dataChanged(index(1), index(1));
|
emit dataChanged(index(1), index(1));
|
||||||
} else if (tagId == QLatin1String("global")) {
|
} else if (tagId == QLatin1String("global")) {
|
||||||
|
|
Loading…
Reference in a new issue