Commit c4ba6735 authored by JC Brand's avatar JC Brand

Bugfix. Can't cast undefined to array

parent a065b0c8
......@@ -1939,7 +1939,7 @@ converse.plugins.add('converse-muc', {
const actors_per_state = this.notifications.toJSON();
states = Array.isArray(states) ? states : [states];
states.forEach(state => {
const existing_actors = Array.from(actors_per_state[state]) || [];
const existing_actors = Array.from(actors_per_state[state] || []);
if (existing_actors.includes(actor)) {
const idx = existing_actors.indexOf(actor);
existing_actors.splice(idx, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment