mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 01:06:59 +00:00
Mark mentions as read on reply-from-notification.
This commit is contained in:
parent
d228495550
commit
f1518af8b3
@ -510,6 +510,11 @@ void Manager::notificationReplied(
|
||||
message.replyTo = (msgId > 0 && !history->peer->isUser()) ? msgId : 0;
|
||||
message.clearDraft = false;
|
||||
Auth().api().sendMessage(std::move(message));
|
||||
|
||||
const auto item = history->owner().message(history->channelId(), msgId);
|
||||
if (item && item->isUnreadMention() && !item->isUnreadMedia()) {
|
||||
Auth().api().markMediaRead(item);
|
||||
}
|
||||
}
|
||||
|
||||
void NativeManager::doShowNotification(HistoryItem *item, int forwardedCount) {
|
||||
|
Loading…
Reference in New Issue
Block a user