mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 17:41:16 +00:00
fix: random crashes & rewrite worker
This commit is contained in:
@@ -68,6 +68,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
// AyuGram includes
|
||||
#include "ayu/ayu_settings.h"
|
||||
#include "ayu/ayu_worker.h"
|
||||
|
||||
|
||||
namespace Api {
|
||||
@@ -2039,6 +2040,7 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
||||
} else if (d.vstatus().type() == mtpc_userStatusOnline) {
|
||||
cSetOtherOnline(
|
||||
d.vstatus().c_userStatusOnline().vexpires().v);
|
||||
AyuWorker::markAsOnline(_session);
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user