mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix localtime-related slowmode errors.
This commit is contained in:
@@ -1242,16 +1242,12 @@ void History::newItemAdded(not_null<HistoryItem*> item) {
|
||||
}
|
||||
from->madeAction(item->date());
|
||||
}
|
||||
item->contributeToSlowmode();
|
||||
if (item->out()) {
|
||||
destroyUnreadBar();
|
||||
if (!item->unread()) {
|
||||
outboxRead(item);
|
||||
}
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
if (IsServerMsgId(item->id)) {
|
||||
channel->growSlowmodeLastMessage(item->date());
|
||||
}
|
||||
}
|
||||
} else if (item->unread()) {
|
||||
if (!isChannel() || peer->asChannel()->amIn()) {
|
||||
_notifications.push_back(item);
|
||||
|
Reference in New Issue
Block a user