Fixed extra space in a name of the post author after forwarding message.

This commit is contained in:
23rd 2019-02-23 21:52:21 +03:00 committed by John Preston
parent 9799afa064
commit c2ad765424

View file

@ -4242,7 +4242,7 @@ void ApiWrap::forwardMessages(
? UserId(0)
: peerToUser(self->id);
const auto messagePostAuthor = channelPost
? (self->firstName + ' ' + self->lastName)
? App::peerName(self)
: QString();
history->addNewForwarded(
newId.msg,
@ -4323,7 +4323,7 @@ void ApiWrap::sendSharedContact(
}
const auto messageFromId = channelPost ? 0 : _session->userId();
const auto messagePostAuthor = channelPost
? (_session->user()->firstName + ' ' + _session->user()->lastName)
? App::peerName(_session->user())
: QString();
const auto vcard = QString();
const auto views = 1;