Use correct phrases in group stories.
This commit is contained in:
parent
adc8966c61
commit
46d11b6dcb
|
@ -2863,6 +2863,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"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_open_channel" = "Open Channel";
|
||||||
|
"lng_context_open_group" = "Open Group";
|
||||||
"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";
|
||||||
|
|
|
@ -221,14 +221,19 @@ void FillSourceMenu(
|
||||||
controller->showSection(Info::Stories::Make(peer));
|
controller->showSection(Info::Stories::Make(peer));
|
||||||
}, &st::menuIconStoriesSavedSection);
|
}, &st::menuIconStoriesSavedSection);
|
||||||
} else {
|
} else {
|
||||||
|
const auto group = peer->isMegagroup();
|
||||||
const auto channel = peer->isChannel();
|
const auto channel = peer->isChannel();
|
||||||
const auto showHistoryText = channel
|
const auto showHistoryText = group
|
||||||
|
? tr::lng_context_open_group(tr::now)
|
||||||
|
: channel
|
||||||
? tr::lng_context_open_channel(tr::now)
|
? tr::lng_context_open_channel(tr::now)
|
||||||
: tr::lng_profile_send_message(tr::now);
|
: tr::lng_profile_send_message(tr::now);
|
||||||
add(showHistoryText, [=] {
|
add(showHistoryText, [=] {
|
||||||
controller->showPeerHistory(peer);
|
controller->showPeerHistory(peer);
|
||||||
}, channel ? &st::menuIconChannel : &st::menuIconChatBubble);
|
}, channel ? &st::menuIconChannel : &st::menuIconChatBubble);
|
||||||
const auto viewProfileText = channel
|
const auto viewProfileText = group
|
||||||
|
? tr::lng_context_view_group(tr::now)
|
||||||
|
: channel
|
||||||
? tr::lng_context_view_channel(tr::now)
|
? tr::lng_context_view_channel(tr::now)
|
||||||
: tr::lng_context_view_profile(tr::now);
|
: tr::lng_context_view_profile(tr::now);
|
||||||
add(viewProfileText, [=] {
|
add(viewProfileText, [=] {
|
||||||
|
|
Loading…
Reference in New Issue