mirror of https://github.com/procxx/kepka.git
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.replyTo = (msgId > 0 && !history->peer->isUser()) ? msgId : 0;
|
||||||
message.clearDraft = false;
|
message.clearDraft = false;
|
||||||
Auth().api().sendMessage(std::move(message));
|
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) {
|
void NativeManager::doShowNotification(HistoryItem *item, int forwardedCount) {
|
||||||
|
|
Loading…
Reference in New Issue