Ejemplo n.º 1
0
        public static void Logout()
        {
            AccessToken = null;
            IsLoggedIn  = false;

            // Close the websocket connection
            SyncManager.CloseWebsocketConnection();

            // Remove the user
            SettingsManager.RemoveUser();

            // Delete the profile image
            // TODO

            // Set the session UploadStatus to Deleted
            SettingsManager.SetSessionUploadStatus(SessionUploadStatus.Deleted);

            // Start deleting the session on the server
            _ = SyncManager.SessionSyncPush();
        }