mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Mark mentions as read on reply-from-notification.
This commit is contained in:
parent
d228495550
commit
f1518af8b3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue