Skip to content
Snippets Groups Projects
Commit 2bb2eff9 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account service: handle missing mode

Change-Id: I2f7cf71e9ce236f41b841595db6817e448e269f3
parent 0b27386a
Branches
Tags
No related merge requests found
...@@ -265,7 +265,7 @@ class AccountService( ...@@ -265,7 +265,7 @@ class AccountService(
/*for (Map.Entry<String, String> i : info.entrySet()) { /*for (Map.Entry<String, String> i : info.entrySet()) {
Log.w(TAG, "conversation info: " + i.getKey() + " " + i.getValue()); Log.w(TAG, "conversation info: " + i.getKey() + " " + i.getValue());
}*/ }*/
val mode = if ("true" == info["syncing"]) Conversation.Mode.Syncing else Conversation.Mode.values()[info["mode"]!!.toInt()] val mode = if ("true" == info["syncing"]) Conversation.Mode.Syncing else Conversation.Mode.values()[info["mode"]?.toInt() ?: Conversation.Mode.Syncing.ordinal]
val conversation = account.newSwarm(conversationId, mode) val conversation = account.newSwarm(conversationId, mode)
conversation.setProfile(mVCardService.loadConversationProfile(info)) conversation.setProfile(mVCardService.loadConversationProfile(info))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment