mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Show "You" in out voice messages player.
This commit is contained in:
parent
4a5592e95d
commit
5472654ac1
1 changed files with 3 additions and 1 deletions
|
@ -1014,7 +1014,9 @@ void Widget::handleSongChange() {
|
|||
TextWithEntities textWithEntities;
|
||||
if (document->isVoiceMessage() || document->isVideoMessage()) {
|
||||
if (const auto item = document->owner().message(current.contextId())) {
|
||||
const auto name = item->fromOriginal()->name;
|
||||
const auto name = (!item->out() || item->isPost())
|
||||
? item->fromOriginal()->name
|
||||
: tr::lng_from_you(tr::now);
|
||||
const auto date = [item] {
|
||||
const auto parsed = ItemDateTime(item);
|
||||
const auto date = parsed.date();
|
||||
|
|
Loading…
Add table
Reference in a new issue