Merge pull request #8541 from abaker/fix_fallback_key_sharing_strategy

Fix fallbackKeySharingStrategy
This commit is contained in:
Benoit Marty 2023-06-16 13:05:30 +02:00 committed by GitHub
commit 4af2f700f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/8541.bugfix Normal file
View File

@ -0,0 +1 @@
Fix crypto config fallback key sharing strategy

View File

@ -77,8 +77,8 @@ object ConfigurationModule {
fun providesCryptoConfig() = CryptoConfig(
fallbackKeySharingStrategy = when (Config.KEY_SHARING_STRATEGY) {
KeySharingStrategy.WhenSendingEvent -> OutboundSessionKeySharingStrategy.WhenSendingEvent
KeySharingStrategy.WhenEnteringRoom -> OutboundSessionKeySharingStrategy.WhenSendingEvent
KeySharingStrategy.WhenTyping -> OutboundSessionKeySharingStrategy.WhenSendingEvent
KeySharingStrategy.WhenEnteringRoom -> OutboundSessionKeySharingStrategy.WhenEnteringRoom
KeySharingStrategy.WhenTyping -> OutboundSessionKeySharingStrategy.WhenTyping
}
)