Skip to content

Commit 4af2f70

Browse files
authored
Merge pull request #8541 from abaker/fix_fallback_key_sharing_strategy
Fix fallbackKeySharingStrategy
2 parents 710d21f + 572bdb6 commit 4af2f70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/8541.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix crypto config fallback key sharing strategy

vector/src/main/java/im/vector/app/core/di/ConfigurationModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ object ConfigurationModule {
7777
fun providesCryptoConfig() = CryptoConfig(
7878
fallbackKeySharingStrategy = when (Config.KEY_SHARING_STRATEGY) {
7979
KeySharingStrategy.WhenSendingEvent -> OutboundSessionKeySharingStrategy.WhenSendingEvent
80-
KeySharingStrategy.WhenEnteringRoom -> OutboundSessionKeySharingStrategy.WhenSendingEvent
81-
KeySharingStrategy.WhenTyping -> OutboundSessionKeySharingStrategy.WhenSendingEvent
80+
KeySharingStrategy.WhenEnteringRoom -> OutboundSessionKeySharingStrategy.WhenEnteringRoom
81+
KeySharingStrategy.WhenTyping -> OutboundSessionKeySharingStrategy.WhenTyping
8282
}
8383
)
8484

0 commit comments

Comments
 (0)