Change wording of 'invite anyway' setting
https://github.com/vector-im/riot-web/issues/7922
This commit is contained in:
parent
82e043638e
commit
55889d5491
5 changed files with 16 additions and 14 deletions
|
@ -101,7 +101,7 @@ export default class MultiInviter {
|
|||
if (addrType === 'email') {
|
||||
return MatrixClientPeg.get().inviteByEmail(roomId, addr);
|
||||
} else if (addrType === 'mx-user-id') {
|
||||
if (!ignoreProfile && !SettingsStore.getValue("alwaysInviteUnknownUsers", this.roomId)) {
|
||||
if (!ignoreProfile && SettingsStore.getValue("promptBeforeInviteUnknownUsers", this.roomId)) {
|
||||
try {
|
||||
const profile = await MatrixClientPeg.get().getProfileInfo(addr);
|
||||
if (!profile) {
|
||||
|
@ -204,7 +204,7 @@ export default class MultiInviter {
|
|||
Promise.all(promises).then(() => this.deferred.resolve(this.completionStates));
|
||||
};
|
||||
|
||||
if (SettingsStore.getValue("alwaysInviteUnknownUsers", this.roomId)) {
|
||||
if (!SettingsStore.getValue("promptBeforeInviteUnknownUsers", this.roomId)) {
|
||||
inviteUnknowns();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue