You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Merge pull request #1624 from robintown/invite-reasons
Support sending invite reasons
This commit is contained in:
@@ -3450,11 +3450,12 @@ MatrixClient.prototype.getRoomUpgradeHistory = function(roomId, verifyLinks=fals
|
||||
* @param {string} roomId
|
||||
* @param {string} userId
|
||||
* @param {module:client.callback} callback Optional.
|
||||
* @param {string} reason Optional.
|
||||
* @return {Promise} Resolves: TODO
|
||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||
*/
|
||||
MatrixClient.prototype.invite = function(roomId, userId, callback) {
|
||||
return _membershipChange(this, roomId, userId, "invite", undefined,
|
||||
MatrixClient.prototype.invite = function(roomId, userId, callback, reason) {
|
||||
return _membershipChange(this, roomId, userId, "invite", reason,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user