mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
refactor: add more else branches for unimplemented types
This commit is contained in:
parent
6006715b74
commit
055d37db5f
@ -117,6 +117,7 @@ class ConfigFactory(private val context: Context,
|
||||
is UserProfile -> persistUserConfigDump()
|
||||
is Contacts -> persistContactsConfigDump()
|
||||
is ConversationVolatileConfig -> persistConvoVolatileConfigDump()
|
||||
else -> throw UnsupportedOperationException("Can't support type of ${forConfigObject::class.simpleName} yet")
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,6 +126,7 @@ class ConfigFactory(private val context: Context,
|
||||
is UserProfile -> userHashes.add(hash)
|
||||
is Contacts -> contactsHashes.add(hash)
|
||||
is ConversationVolatileConfig -> convoHashes.add(hash)
|
||||
else -> throw UnsupportedOperationException("Can't support type of ${configObject::class.simpleName} yet")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user