mirror of https://github.com/procxx/kepka.git
Always clear history notifications when marking as read.
This commit is contained in:
parent
496faef0b3
commit
f7144a55e2
|
@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "data/data_channel.h"
|
#include "data/data_channel.h"
|
||||||
#include "data/data_folder.h"
|
#include "data/data_folder.h"
|
||||||
#include "main/main_session.h"
|
#include "main/main_session.h"
|
||||||
|
#include "window/notifications_manager.h"
|
||||||
#include "history/history.h"
|
#include "history/history.h"
|
||||||
#include "history/history_item.h"
|
#include "history/history_item.h"
|
||||||
#include "history/view/history_view_element.h"
|
#include "history/view/history_view_element.h"
|
||||||
|
@ -134,6 +135,8 @@ void Histories::readInboxTill(
|
||||||
bool force) {
|
bool force) {
|
||||||
Expects(IsServerMsgId(tillId) || (!tillId && !force));
|
Expects(IsServerMsgId(tillId) || (!tillId && !force));
|
||||||
|
|
||||||
|
history->session().notifications().clearIncomingFromHistory(history);
|
||||||
|
|
||||||
const auto needsRequest = history->readInboxTillNeedsRequest(tillId);
|
const auto needsRequest = history->readInboxTillNeedsRequest(tillId);
|
||||||
if (!needsRequest && !force) {
|
if (!needsRequest && !force) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue