mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
adding documentation to the new session listener
This commit is contained in:
parent
eb72587238
commit
57bf044df0
2 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue