ktlintFormat

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-03-12 18:43:38 +01:00 committed by Marcel Hibbe
parent 2b1a16415c
commit d80200906d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -4692,8 +4692,10 @@ class ChatActivity :
val isOlderThanSixHours = message
.createdAt
.before(Date(System.currentTimeMillis() - AGE_THRESHOLD_FOR_DELETE_MESSAGE))
val hasDeleteMessagesUnlimitedCapability = CapabilitiesUtil.hasSpreedFeatureCapability(spreedCapabilities,
SpreedFeatures.DELETE_MESSAGES_UNLIMITED)
val hasDeleteMessagesUnlimitedCapability = CapabilitiesUtil.hasSpreedFeatureCapability(
spreedCapabilities,
SpreedFeatures.DELETE_MESSAGES_UNLIMITED
)
return when {
!isUserAllowedByPrivileges -> false