mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
fix: reactions and mentions not being read locally
This commit is contained in:
parent
0eab40b22f
commit
2c6439eeb6
1 changed files with 6 additions and 5 deletions
|
@ -1318,11 +1318,6 @@ void ApiWrap::migrateFail(not_null<PeerData*> peer, const QString &error) {
|
|||
|
||||
void ApiWrap::markContentsRead(
|
||||
const base::flat_set<not_null<HistoryItem*>> &items) {
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->sendReadMessages) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto markedIds = QVector<MTPint>();
|
||||
auto channelMarkedIds = base::flat_map<
|
||||
not_null<ChannelData*>,
|
||||
|
@ -1338,6 +1333,12 @@ void ApiWrap::markContentsRead(
|
|||
markedIds.push_back(MTP_int(item->id));
|
||||
}
|
||||
}
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->sendReadMessages) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!markedIds.isEmpty()) {
|
||||
request(MTPmessages_ReadMessageContents(
|
||||
MTP_vector<MTPint>(markedIds)
|
||||
|
|
Loading…
Add table
Reference in a new issue