Fix fallbackKeySharingStrategy

Signed-off-by: Alex Baker <alex@beeper.com>
This commit is contained in:
Alex Baker 2023-06-14 16:20:21 -05:00
parent ce80d7ff2f
commit 572bdb6dfe
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
}
)