adding documentation to the new session listener

This commit is contained in:
Adam Brown 2022-03-31 17:33:55 +01:00
parent eb72587238
commit 57bf044df0
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,15 @@
*/
package org.matrix.android.sdk.internal.crypto
/**
* This listener notifies on new Megolm sessions being created
*/
interface NewSessionListener {
/**
* @param roomId the room id where the new Megolm session has been created for, may be null when importing from external sessions
* @param senderKey the sender key of the device which the Megolm session is shared with
* @param sessionId the session id of the Megolm session
*/
fun onNewSession(roomId: String?, senderKey: String, sessionId: String)
}

View File

@ -325,6 +325,7 @@ internal class MXMegolmDecryption(private val userId: String,
/**
* Check if the some messages can be decrypted with a new session
*
* @param roomId the room id where the new Megolm session has been created for, may be null when importing from external sessions
* @param senderKey the session sender key
* @param sessionId the session id
*/