Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Dec 6, 2023
1 parent 422aacd commit cd025c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ fun MessageContent.System.toMessageEntityContent(): MessageEntityContent.System
is MessageContent.ConversationProtocolChanged -> MessageEntityContent.ConversationProtocolChanged(protocol.toDao())
MessageContent.HistoryLostProtocolChanged -> MessageEntityContent.HistoryLostProtocolChanged
is MessageContent.ConversationStartedUnverifiedWarning -> MessageEntityContent.ConversationStartedUnverifiedWarning
is MessageContent.LegalHold -> when(this) {
is MessageContent.LegalHold -> when (this) {
MessageContent.LegalHold.ForConversation.Disabled ->
MessageEntityContent.LegalHold(emptyList(), MessageEntity.LegalHoldType.DISABLED_FOR_CONVERSATION)
is MessageContent.LegalHold.ForMembers.Disabled ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ internal interface LegalHoldHandler {
suspend fun handleDisable(legalHoldDisabled: Event.User.LegalHoldDisabled): Either<CoreFailure, Unit>
}

@Suppress("LongParameterList")
internal class LegalHoldHandlerImpl internal constructor(
private val selfUserId: UserId,
private val persistOtherUserClients: PersistOtherUserClientsUseCase,
Expand Down

0 comments on commit cd025c8

Please sign in to comment.