mirror of https://github.com/procxx/kepka.git
Fixed info display in media in non-group chats.
Version 1.0.8 introduced a regression in displaying forwarded, reply and via @bot information in photo, video, GIFs and locations.
This commit is contained in:
parent
e922e5be39
commit
d3420b6a92
|
@ -162,7 +162,10 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (auto message = _parent->toHistoryMessage()) {
|
if (auto message = _parent->toHistoryMessage()) {
|
||||||
return message->displayFromName();
|
return message->viaBot()
|
||||||
|
|| message->Has<HistoryMessageForwarded>()
|
||||||
|
|| message->Has<HistoryMessageReply>()
|
||||||
|
|| message->displayFromName();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -249,7 +252,10 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (auto message = _parent->toHistoryMessage()) {
|
if (auto message = _parent->toHistoryMessage()) {
|
||||||
return message->displayFromName();
|
return message->viaBot()
|
||||||
|
|| message->Has<HistoryMessageForwarded>()
|
||||||
|
|| message->Has<HistoryMessageReply>()
|
||||||
|
|| message->displayFromName();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -503,7 +509,10 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (auto message = _parent->toHistoryMessage()) {
|
if (auto message = _parent->toHistoryMessage()) {
|
||||||
return message->displayFromName();
|
return message->viaBot()
|
||||||
|
|| message->Has<HistoryMessageForwarded>()
|
||||||
|
|| message->Has<HistoryMessageReply>()
|
||||||
|
|| message->displayFromName();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -904,7 +913,10 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (auto message = _parent->toHistoryMessage()) {
|
if (auto message = _parent->toHistoryMessage()) {
|
||||||
return message->displayFromName();
|
return message->viaBot()
|
||||||
|
|| message->Has<HistoryMessageForwarded>()
|
||||||
|
|| message->Has<HistoryMessageReply>()
|
||||||
|
|| message->displayFromName();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue