mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.10: Fix channel stories phrases.
This commit is contained in:
parent
16b1881268
commit
a6df03d990
2 changed files with 12 additions and 4 deletions
|
@ -2416,6 +2416,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"lng_context_open_gif" = "Open GIF";
|
"lng_context_open_gif" = "Open GIF";
|
||||||
"lng_context_save_gif" = "Save GIF";
|
"lng_context_save_gif" = "Save GIF";
|
||||||
"lng_context_delete_gif" = "Delete GIF";
|
"lng_context_delete_gif" = "Delete GIF";
|
||||||
|
"lng_context_open_channel" = "Open Channel";
|
||||||
"lng_context_attached_stickers" = "Attached Stickers";
|
"lng_context_attached_stickers" = "Attached Stickers";
|
||||||
"lng_context_to_msg" = "Go To Message";
|
"lng_context_to_msg" = "Go To Message";
|
||||||
"lng_context_reply_msg" = "Reply";
|
"lng_context_reply_msg" = "Reply";
|
||||||
|
|
|
@ -512,12 +512,19 @@ void FillSourceMenu(
|
||||||
controller->showSection(Info::Stories::Make(peer));
|
controller->showSection(Info::Stories::Make(peer));
|
||||||
}, &st::menuIconStoriesSavedSection);
|
}, &st::menuIconStoriesSavedSection);
|
||||||
} else {
|
} else {
|
||||||
add(tr::lng_profile_send_message(tr::now), [=] {
|
const auto channel = peer->isChannel();
|
||||||
|
const auto showHistoryText = channel
|
||||||
|
? tr::lng_context_open_channel(tr::now)
|
||||||
|
: tr::lng_profile_send_message(tr::now);
|
||||||
|
add(showHistoryText, [=] {
|
||||||
controller->showPeerHistory(peer);
|
controller->showPeerHistory(peer);
|
||||||
}, &st::menuIconChatBubble);
|
}, channel ? &st::menuIconChannel : &st::menuIconChatBubble);
|
||||||
add(tr::lng_context_view_profile(tr::now), [=] {
|
const auto viewProfileText = channel
|
||||||
|
? tr::lng_context_view_channel(tr::now)
|
||||||
|
: tr::lng_context_view_profile(tr::now);
|
||||||
|
add(viewProfileText, [=] {
|
||||||
controller->showPeerInfo(peer);
|
controller->showPeerInfo(peer);
|
||||||
}, &st::menuIconProfile);
|
}, channel ? &st::menuIconInfo : &st::menuIconProfile);
|
||||||
const auto in = [&](Data::StorySourcesList list) {
|
const auto in = [&](Data::StorySourcesList list) {
|
||||||
return ranges::contains(
|
return ranges::contains(
|
||||||
owner->stories().sources(list),
|
owner->stories().sources(list),
|
||||||
|
|
Loading…
Add table
Reference in a new issue