diff --git a/lib/src/room.dart b/lib/src/room.dart index e593fba9..82c45200 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1216,7 +1216,15 @@ class Room { } /// Call the Matrix API to invite a user to this room. - Future invite(String userID) => client.inviteUser(id, userID); + Future invite( + String userID, { + String? reason, + }) => + client.inviteUser( + id, + userID, + reason: reason, + ); /// Request more previous events from the server. [historyCount] defines how much events should /// be received maximum. When the request is answered, [onHistoryReceived] will be triggered **before**