{"action":"created","issue":{"url":"https://api.github.com/repos/siacs/Conversations/issues/1916","repository_url":"https://api.github.com/repos/siacs/Conversations","labels_url":"https://api.github.com/repos/siacs/Conversations/issues/1916/labels{/name}","comments_url":"https://api.github.com/repos/siacs/Conversations/issues/1916/comments","events_url":"https://api.github.com/repos/siacs/Conversations/issues/1916/events","html_url":"https://github.com/siacs/Conversations/issues/1916","id":160816127,"number":1916,"title":"App hangs on the login screen when you login just after you sign up for account on server.","user":{"login":"gakwaya","id":3991041,"avatar_url":"https://avatars.githubusercontent.com/u/3991041?v=3","gravatar_id":"","url":"https://api.github.com/users/gakwaya","html_url":"https://github.com/gakwaya","followers_url":"https://api.github.com/users/gakwaya/followers","following_url":"https://api.github.com/users/gakwaya/following{/other_user}","gists_url":"https://api.github.com/users/gakwaya/gists{/gist_id}","starred_url":"https://api.github.com/users/gakwaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gakwaya/subscriptions","organizations_url":"https://api.github.com/users/gakwaya/orgs","repos_url":"https://api.github.com/users/gakwaya/repos","events_url":"https://api.github.com/users/gakwaya/events{/privacy}","received_events_url":"https://api.github.com/users/gakwaya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T05:43:09Z","updated_at":"2016-06-17T08:06:38Z","closed_at":null,"body":"#### General information\r\n\r\n* **Version:** eg 1.10.0\r\n* **Device:** LG\r\n* **Android Version:** eg Android 4\r\n* **Server name:** self hosted ejabberd\r\n\r\n* **Conversations source:** self build \r\n\r\n\r\n#### Steps to reproduce\r\n\r\n\r\n  1.Install fresh copy of Conversations\r\n\r\n  2.Sign up for account on server(It logs in automatically)\r\n\r\n  3.Go into Manage Accounts ,long click on the account-->>Delete Account.\r\n    Hit the back button a couple of times till the Login screen is shown.\r\n\r\n  4.Type in user name and password and hit the confirm button.\r\n\r\n#### Expected result\r\n  When app logs in for the StartConversation activity to be shown\r\n\r\n#### What I see instead\r\n\r\n Hangs on the login screen even after the app has logged in.(Can see that from logcat).\r\n\r\n\r\nPossible Reason :\r\n\r\n```\r\nprivate OnStatusChanged statusListener = new OnStatusChanged() {\r\n\r\n\t\t@Override\r\n\t\tpublic void onStatusChanged(Account account) {\r\n\t\t\tLog.d(TAG, \"onStatusChanged() called with: \" + \"account = [\" + account + \"]\");\r\n\t\t\tXmppConnection connection = account.getXmppConnection();\r\n\r\n\t\t\t\r\n\r\n\t\t\tif (mOnAccountUpdate != null) {\r\n\t\t\t\tmOnAccountUpdate.onAccountUpdate();\r\n\t\t\t\tLog.d(TAG,\"mOnAccountUpdate is NOT NULL ,ACCOUNT :\"+account.getJid()+\" status is :\"+account.getStatus().toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t....\r\n\t\t\t}\r\n\t\t\t}\r\n```\r\nInside XmppConnectionService ,the onAccountUpdate() override of the OnStatusChanged interface is not called as  the mOnAccountUpdate member variable is not initialized yet.The solution I could come up with was to send a broadcast with the update that there has been an account update.Interested activities simply listen to that broadcast.This fixes my problem.\r\nThis may not be the best solution as I am still discovering my way around the android platform.Better suggestions are welcome.Just an ending note ,good job to the developers of Conversations."},"comment":{"url":"https://api.github.com/repos/siacs/Conversations/issues/comments/226707123","html_url":"https://github.com/siacs/Conversations/issues/1916#issuecomment-226707123","issue_url":"https://api.github.com/repos/siacs/Conversations/issues/1916","id":226707123,"user":{"login":"iNPUTmice","id":192229,"avatar_url":"https://avatars.githubusercontent.com/u/192229?v=3","gravatar_id":"","url":"https://api.github.com/users/iNPUTmice","html_url":"https://github.com/iNPUTmice","followers_url":"https://api.github.com/users/iNPUTmice/followers","following_url":"https://api.github.com/users/iNPUTmice/following{/other_user}","gists_url":"https://api.github.com/users/iNPUTmice/gists{/gist_id}","starred_url":"https://api.github.com/users/iNPUTmice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iNPUTmice/subscriptions","organizations_url":"https://api.github.com/users/iNPUTmice/orgs","repos_url":"https://api.github.com/users/iNPUTmice/repos","events_url":"https://api.github.com/users/iNPUTmice/events{/privacy}","received_events_url":"https://api.github.com/users/iNPUTmice/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:06:38Z","updated_at":"2016-06-17T08:06:38Z","body":"> 1.10.0\r\n\r\nreally?"}}
{"actor":{"display_login":"iNPUTmice"}}