Show GroupMemberList after inviting a group member

because we might be looking at a member when inviting a new
member.

See https://github.com/vector-im/riot-web/pull/6303
This commit is contained in:
Luke Barnard 2018-03-12 17:23:31 +00:00
parent e87f8ee7b8
commit 0a480b05aa

View file

@ -22,6 +22,7 @@ import MatrixClientPeg from './MatrixClientPeg';
import GroupStoreCache from './stores/GroupStoreCache';
export function showGroupInviteDialog(groupId) {
return new Promise((resolve, reject) => {
const description = <div>
<div>{ _t("Who would you like to add to this community?") }</div>
<div className="warning">
@ -42,9 +43,10 @@ export function showGroupInviteDialog(groupId) {
onFinished: (success, addrs) => {
if (!success) return;
_onGroupInviteFinished(groupId, addrs);
_onGroupInviteFinished(groupId, addrs).then(resolve, reject);
},
});
});
}
export function showGroupAddRoomDialog(groupId) {
@ -87,7 +89,7 @@ function _onGroupInviteFinished(groupId, addrs) {
const addrTexts = addrs.map((addr) => addr.address);
multiInviter.invite(addrTexts).then((completionStates) => {
return multiInviter.invite(addrTexts).then((completionStates) => {
// Show user any errors
const errorList = [];
for (const addr of Object.keys(completionStates)) {