mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 18:55:05 +01:00
Merge pull request #4263 from nextcloud/bugfix/4262/UninitializedPropertyAccessExceptionSpreedCapabilities
avoid UninitializedPropertyAccessException for spreedCapabilities
This commit is contained in:
commit
68627ad752
@ -2535,9 +2535,13 @@ class ChatActivity :
|
||||
}
|
||||
}
|
||||
|
||||
if (this::spreedCapabilities.isInitialized) {
|
||||
if (CapabilitiesUtil.hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.MESSAGE_EXPIRATION)) {
|
||||
deleteExpiredMessages()
|
||||
}
|
||||
} else {
|
||||
Log.w(TAG, "spreedCapabilities are not initialized in processExpiredMessages()")
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateReadStatusOfAllMessages(xChatLastCommonRead: Int?) {
|
||||
|
Loading…
Reference in New Issue
Block a user