Handle room invitation actions

This commit is contained in:
Benoit Marty
2019-07-01 17:26:24 +02:00
committed by Benoit Marty
parent 07309c90e1
commit 01e3e71f98
12 changed files with 248 additions and 82 deletions

View File

@ -47,7 +47,7 @@ interface MembershipService {
*/
fun getRoomMemberIdsLive(): LiveData<List<String>>
fun getNumberOfJoinedMembers() : Int
fun getNumberOfJoinedMembers(): Int
/**
* Invite a user in the room
@ -55,13 +55,12 @@ interface MembershipService {
fun invite(userId: String, callback: MatrixCallback<Unit>)
/**
* Join the room
* Join the room, or accept an invitation.
*/
fun join(callback: MatrixCallback<Unit>)
/**
* Leave the room.
*
* Leave the room, or reject an invitation.
*/
fun leave(callback: MatrixCallback<Unit>)