Fix invite link sharing without a comment.

This commit is contained in:
John Preston 2021-02-24 19:17:48 +04:00
parent 2d8e6f9745
commit b638650b41
1 changed files with 2 additions and 0 deletions

View File

@ -881,6 +881,8 @@ void ShareInviteLinkBox(not_null<PeerData*> peer, const QString &link) {
for (auto &tag : comment.tags) {
tag.offset += add;
}
} else {
comment.text = link;
}
const auto owner = &peer->owner();
auto &api = peer->session().api();