Skip to content
Snippets Groups Projects
Commit 4288fa4b authored by Taras's avatar Taras
Browse files

Remove enableInviteKeysSharing

parent 08d64d7b
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,6 @@ object MatrixSessionProvider {
listener: Session.Listener? = null
) {
listener?.let { session.addListener(it) }
enableInviteKeysSharing(session)
currentSession = session.apply {
tryOrNull { open() }
syncService().startSync(true)
......@@ -96,12 +95,4 @@ object MatrixSessionProvider {
}
})
}
//For Room history share
private fun enableInviteKeysSharing(session: Session) {
tryOrNull {
val isEnabled = session.cryptoService().isShareKeysOnInviteEnabled()
if (!isEnabled) session.cryptoService().enableShareKeyOnInvite(true)
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment