From 9099dd74c0fbd90e33bc9f7d4ee08b6f83744a45 Mon Sep 17 00:00:00 2001 From: Krille Date: Fri, 12 Apr 2024 09:08:21 +0200 Subject: [PATCH] chore: Pass reason parameter when invite user to a room --- lib/src/room.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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**