Skip to content

Commit

Permalink
chore: fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
typfel committed Oct 4, 2023
1 parent 65307d5 commit 8f9db92
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ interface ConversationRepository {
suspend fun getConversationDetailsByMLSGroupId(mlsGroupId: GroupID): Either<CoreFailure, ConversationDetails>

suspend fun observeUnreadArchivedConversationsCount(): Flow<Long>

/**
* Update a conversation's protocol remotely.
*
Expand All @@ -268,7 +268,7 @@ interface ConversationRepository {
suspend fun updateProtocolLocally(conversationId: ConversationId, protocol: Conversation.Protocol): Either<CoreFailure, Boolean>
}

@Suppress("LongParameterList", "TooManyFunctions")
@Suppress("LongParameterList", "TooManyFunctions", "LargeClass")
internal class ConversationDataSource internal constructor(
private val selfUserId: UserId,
private val mlsClientProvider: MLSClientProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ class UserSessionScope internal constructor(

private val typingIndicatorHandler: TypingIndicatorHandler
get() = TypingIndicatorHandlerImpl(userId, conversations.typingIndicatorRepository)

private val protocolUpdateEventHandler: ProtocolUpdateEventHandler
get() = ProtocolUpdateEventHandlerImpl(
conversationRepository = conversationRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ internal class MLSMessageUnpackerImpl(
)
mlsConversationRepository.decryptMessage(messageEvent.content.decodeBase64Bytes(), protocolInfo.groupId)
} else {
Either.Right(emptyList())
Either.Left(CoreFailure.NotSupportedByProteus)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ sealed interface MessageEntity {
enum class ContentType {
TEXT, ASSET, KNOCK, MEMBER_CHANGE, MISSED_CALL, RESTRICTED_ASSET,
CONVERSATION_RENAMED, UNKNOWN, FAILED_DECRYPTION, REMOVED_FROM_TEAM, CRYPTO_SESSION_RESET,
NEW_CONVERSATION_RECEIPT_MODE, CONVERSATION_RECEIPT_MODE_CHANGED, HISTORY_LOST, HISTORY_LOST_PROTOCOL_CHANGED, CONVERSATION_MESSAGE_TIMER_CHANGED,
CONVERSATION_CREATED, MLS_WRONG_EPOCH_WARNING, CONVERSATION_DEGRADED_MLS, CONVERSATION_DEGRADED_PREOTEUS, CONVERSATION_VERIFIED_MLS,
CONVERSATION_VERIFIED_PREOTEUS, COMPOSITE, FEDERATION, CONVERSATION_PROTOCOL_CHANGED
NEW_CONVERSATION_RECEIPT_MODE, CONVERSATION_RECEIPT_MODE_CHANGED, HISTORY_LOST, HISTORY_LOST_PROTOCOL_CHANGED,
CONVERSATION_MESSAGE_TIMER_CHANGED, CONVERSATION_CREATED, MLS_WRONG_EPOCH_WARNING, CONVERSATION_DEGRADED_MLS,
CONVERSATION_DEGRADED_PREOTEUS, CONVERSATION_VERIFIED_MLS, CONVERSATION_VERIFIED_PREOTEUS, COMPOSITE, FEDERATION,
CONVERSATION_PROTOCOL_CHANGED
}

enum class MemberChangeType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ internal object TestStubs {
accessRole = listOf(ConversationEntity.AccessRole.NON_TEAM_MEMBER, ConversationEntity.AccessRole.TEAM_MEMBER),
receiptMode = ConversationEntity.ReceiptMode.DISABLED,
messageTimer = messageTimer,
userMessageTimer = null
userMessageTimer = null,
archived = false,
archivedInstant = null,
verificationStatus = ConversationEntity.VerificationStatus.NOT_VERIFIED
)

val member1 = MemberEntity(user1.id, MemberEntity.Role.Admin)
Expand Down

0 comments on commit 8f9db92

Please sign in to comment.