mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fixed skipping message with MediaWebPage on KeyUp.
This commit is contained in:
@@ -2527,7 +2527,10 @@ HistoryItem *History::lastSentMessage() const {
|
|||||||
const auto item = message->data();
|
const auto item = message->data();
|
||||||
// Skip if message is video message or sticker.
|
// Skip if message is video message or sticker.
|
||||||
if (const auto media = item->media()) {
|
if (const auto media = item->media()) {
|
||||||
if (!media->allowsEditCaption()) continue;
|
// Skip only if media is not webpage.
|
||||||
|
if (!media->webpage() && !media->allowsEditCaption()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (IsServerMsgId(item->id)
|
if (IsServerMsgId(item->id)
|
||||||
&& !item->serviceMsg()
|
&& !item->serviceMsg()
|
||||||
|
Reference in New Issue
Block a user