2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Update phrases.

This commit is contained in:
John Preston
2018-06-22 17:45:58 +01:00
parent 51189fd244
commit 10a0c6a086
2 changed files with 9 additions and 11 deletions

View File

@@ -142,11 +142,11 @@ QByteArray SerializeMessage(
};
const auto wrapPeerName = [&](PeerId peerId) {
const auto result = peer(peerId).name();
return result.isEmpty() ? QByteArray("(unknown peer)") : result;
return result.isEmpty() ? QByteArray("(deleted peer)") : result;
};
const auto wrapUserName = [&](int32 userId) {
const auto result = user(userId).name();
return result.isEmpty() ? QByteArray("(unknown user)") : result;
return result.isEmpty() ? QByteArray("(deleted user)") : result;
};
const auto pushFrom = [&](const QByteArray &label = "From") {
if (message.fromId) {
@@ -869,9 +869,7 @@ Result TextWriter::writeChatEnd() {
}
Result TextWriter::writeChatsEnd() {
if (_chats) {
_chats = nullptr;
}
_chats = nullptr;
return Result::Success();
}