Don't set online status for bots

This commit is contained in:
NekoInverter 2020-04-17 11:52:16 +08:00
parent 50e7a6c543
commit 6bba619de0
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
1 changed files with 1 additions and 1 deletions

View File

@ -3933,7 +3933,7 @@ public class MessagesController extends BaseController implements NotificationCe
checkDeletingTask(false);
checkReadTasks();
if (getUserConfig().isClientActivated()) {
if (getUserConfig().isClientActivated() && !getUserConfig().isBot) {
if (getConnectionsManager().getPauseTime() == 0 && ApplicationLoader.isScreenOn && !ApplicationLoader.mainInterfacePausedStageQueue) {
if (ApplicationLoader.mainInterfacePausedStageQueueTime != 0 && Math.abs(ApplicationLoader.mainInterfacePausedStageQueueTime - System.currentTimeMillis()) > 1000) {
if (statusSettingState != 1 && (lastStatusUpdateTime == 0 || Math.abs(System.currentTimeMillis() - lastStatusUpdateTime) >= 55000 || offlineSent)) {