Don't send an empty message for member events without changes

BUG: 461667
This commit is contained in:
Tobias Fella
2022-11-10 18:35:04 +01:00
parent 95345973cb
commit 824fa469ef

View File

@@ -541,6 +541,9 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
text += i18nc("their refers to a singular user", "updated their avatar");
}
}
if (text.isEmpty()) {
text = i18nc("<user> changed nothing", "changed nothing");
}
return text;
}
case MembershipType::Leave: