You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Refresh group member lists after inviting users
This commit is contained in:
@@ -18,6 +18,7 @@ limitations under the License.
|
||||
import MatrixClientPeg from '../MatrixClientPeg';
|
||||
import {getAddressType} from '../UserAddress';
|
||||
import {inviteToRoom} from '../RoomInvite';
|
||||
import GroupStoreCache from '../stores/GroupStoreCache';
|
||||
import Promise from 'bluebird';
|
||||
|
||||
/**
|
||||
@@ -117,7 +118,9 @@ export default class MultiInviter {
|
||||
|
||||
let doInvite;
|
||||
if (this.groupId !== null) {
|
||||
doInvite = MatrixClientPeg.get().inviteUserToGroup(this.groupId, addr);
|
||||
doInvite = GroupStoreCache
|
||||
.getGroupStore(MatrixClientPeg.get(), this.groupId)
|
||||
.inviteUserToGroup(addr);
|
||||
} else {
|
||||
doInvite = inviteToRoom(this.roomId, addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user