mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-22 09:04:33 +03:00
[issue-2610] fix NoSuchElement error
This commit is contained in:
parent
7aaebd493b
commit
889a9a1798
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class AppStateHandler @Inject constructor(
|
|||
}
|
||||
.distinctUntilChanged()
|
||||
.subscribe {
|
||||
val overrideColorSpecs = it?.first()?.content?.toModel<Map<String, String>>()
|
||||
val overrideColorSpecs = it?.firstOrNull()?.content?.toModel<Map<String, String>>()
|
||||
matrixItemColorProvider.setOverrideColors(overrideColorSpecs)
|
||||
}
|
||||
.addTo(compositeDisposable)
|
||||
|
|
Loading…
Reference in a new issue