2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme on layer 160.

This commit is contained in:
John Preston
2023-06-09 19:31:51 +04:00
parent af5228771c
commit bafb4f91b4
8 changed files with 82 additions and 35 deletions

View File

@@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_user.h"
#include "dialogs/ui/dialogs_stories_list.h"
#include "main/main_session.h"
#include "lang/lang_keys.h"
#include "ui/painter.h"
namespace Dialogs::Stories {
@@ -144,7 +145,9 @@ Content State::next() {
}
result.users.push_back({
.id = uint64(user->id.value),
.name = user->shortName(),
.name = (user->isSelf()
? tr::lng_stories_my_name(tr::now)
: user->shortName()),
.userpic = std::move(userpic),
.unread = info.unread,
.hidden = info.hidden,