mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-22 17:10:43 +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()
|
.distinctUntilChanged()
|
||||||
.subscribe {
|
.subscribe {
|
||||||
val overrideColorSpecs = it?.first()?.content?.toModel<Map<String, String>>()
|
val overrideColorSpecs = it?.firstOrNull()?.content?.toModel<Map<String, String>>()
|
||||||
matrixItemColorProvider.setOverrideColors(overrideColorSpecs)
|
matrixItemColorProvider.setOverrideColors(overrideColorSpecs)
|
||||||
}
|
}
|
||||||
.addTo(compositeDisposable)
|
.addTo(compositeDisposable)
|
||||||
|
|
Loading…
Reference in a new issue