Make Neochat compile against libQuotient 0.6
This commit is contained in:
committed by
Carl Schwan
parent
516ad863b8
commit
4e2b68dc0a
@@ -317,17 +317,17 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
|
||||
}
|
||||
QString text {};
|
||||
if (e.isRename()) {
|
||||
if (e.newDisplayName()->isEmpty())
|
||||
if (e.displayName().isEmpty())
|
||||
text = i18n("cleared their display name");
|
||||
else
|
||||
text = i18n("changed their display name to %1", e.newDisplayName()->toHtmlEscaped());
|
||||
text = i18n("changed their display name to %1", e.displayName().toHtmlEscaped());
|
||||
}
|
||||
if (e.isAvatarUpdate()) {
|
||||
if (!text.isEmpty())
|
||||
text += i18n(" and ");
|
||||
if (!e.newAvatarUrl())
|
||||
if (e.avatarUrl().isEmpty())
|
||||
text += i18n("cleared their avatar");
|
||||
else if (!e.prevContent()->avatarUrl)
|
||||
else if (e.prevContent()->avatarUrl.isEmpty())
|
||||
text += i18n("set an avatar");
|
||||
else
|
||||
text += i18n("updated their avatar");
|
||||
|
||||
Reference in New Issue
Block a user