|
@@ -1386,8 +1386,12 @@ converse.plugins.add('converse-muc-views', {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
const reason = args.split(nick_or_jid, 2)[1].trim();
|
|
const reason = args.split(nick_or_jid, 2)[1].trim();
|
|
- // We're guaranteed to have an occupant due to getNickOrJIDFromCommandArgs
|
|
|
|
const occupant = this.model.getOccupant(nick_or_jid);
|
|
const occupant = this.model.getOccupant(nick_or_jid);
|
|
|
|
+ if (!occupant) {
|
|
|
|
+ this.showErrorMessage(__("Couldn't find a participant with that nickname or JID. They might have left the groupchat."));
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
const attrs = {
|
|
const attrs = {
|
|
'jid': occupant.get('jid'),
|
|
'jid': occupant.get('jid'),
|
|
'reason': reason
|
|
'reason': reason
|