Fixed issue where two chat messages were being received.
Issue was being caused by using ChatCtrl twice and each using chatManager. When this happened, event listeners were being registered twice, which caused each callback to happen twice as well. The fix was to create a new controller just for the userlist directive, and make sure each socket event was listened to only once.
Fixed issue where two chat messages were being received.
Issue was being caused by using
ChatCtrl
twice and each usingchatManager
. When this happened, event listeners were being registered twice, which caused each callback to happen twice as well. The fix was to create a new controller just for the userlist directive, and make sure each socket event was listened to only once.