chore: Pass reason parameter when invite user to a room

This commit is contained in:
Krille 2024-04-12 09:08:21 +02:00
parent 4ef461bb79
commit 9099dd74c0
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 9 additions and 1 deletions

View File

@ -1216,7 +1216,15 @@ class Room {
}
/// Call the Matrix API to invite a user to this room.
Future<void> invite(String userID) => client.inviteUser(id, userID);
Future<void> 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**