Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 065ae95

Browse files
authored
Merge pull request #1459 from matrix-org/luke/groups-invite-warm-fuzzy
Add warm fuzzy dialog for inviting users to a group
2 parents 047daec + c128655 commit 065ae95

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/GroupAddressPicker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ function _onGroupInviteFinished(groupId, addrs) {
7676
title: _t("Failed to invite the following users to %(groupId)s:", {groupId: groupId}),
7777
description: errorList.join(", "),
7878
});
79+
} else {
80+
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
81+
Modal.createTrackedDialog('Group invitations sent', '', QuestionDialog, {
82+
title: _t("Invites sent"),
83+
description: _t("Your group invitations have been sent."),
84+
hasCancelButton: false,
85+
});
7986
}
8087
}).catch((err) => {
8188
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,5 +917,7 @@
917917
"Related groups for this room:": "Related groups for this room:",
918918
"This room has no related groups": "This room has no related groups",
919919
"New group ID (e.g. +foo:%(localDomain)s)": "New group ID (e.g. +foo:%(localDomain)s)",
920+
"Invites sent": "Invites sent",
921+
"Your group invitations have been sent.": "Your group invitations have been sent.",
920922
"%(serverName)s Matrix ID": "%(serverName)s Matrix ID"
921923
}

0 commit comments

Comments
 (0)