Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix updateAuthorList (#1276)

Meisam6d5d7e0ece1c
diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js
index 67767cb5bd..6691666951 100644
--- a/webroot/js/components/chat/chat.js
+++ b/webroot/js/components/chat/chat.js
@@ -276,9 +276,9 @@ export default class Chat extends Component {
nameList.push(message.user.displayName);
return nameList;
} else if (type === SOCKET_MESSAGE_TYPES.NAME_CHANGE) {
- const { oldName, newName } = message;
+ const { oldName, user } = message;
const oldNameIndex = nameList.indexOf(oldName);
- nameList.splice(oldNameIndex, 1, newName);
+ nameList.splice(oldNameIndex, 1, user.displayName);
return nameList;
}
return [];