Mark mentions as read on reply-from-notification.

This commit is contained in:
John Preston 2019-07-04 13:56:28 +02:00
parent d228495550
commit f1518af8b3
1 changed files with 5 additions and 0 deletions

View File

@ -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) {