2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

pseudo-online for hidden last-seen done

This commit is contained in:
John Preston
2015-01-23 14:02:45 +03:00
parent bbcca80503
commit da48c2141c
8 changed files with 36 additions and 8 deletions

View File

@@ -1413,7 +1413,8 @@ void History::newItemAdded(HistoryItem *item) {
if (item->from()) {
unregTyping(item->from());
if (item->from()->onlineTill < 0) {
item->from()->onlineTill = -unixtime() - HiddenIsOnlineAfterMessage;
item->from()->onlineTill = -unixtime() - HiddenIsOnlineAfterMessage; // pseudo-online
if (App::main()) App::main()->peerUpdated(item->from());
}
}
if (item->out()) {