Refresh group member lists after inviting users
This commit is contained in:
parent
03f4e6c622
commit
0799e5cde4
5 changed files with 63 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue