Skip to content

Commit

Permalink
Also refreshUsers when channel subscription is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 5, 2017
1 parent 7a67caf commit c7e5777
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Chat/default.cshtml
Expand Up @@ -124,6 +124,7 @@
onHeartbeat: function (msg, e) { if (console) console.log("onHeartbeat", msg, e); },
onJoin: refreshUsers,
onLeave: refreshUsers,
onUpdate: refreshUsers,
chat: function (m, e) {
addEntry({ id: m.id, userId: m.fromUserId, userName: m.fromName, msg: m.message, cls: m.private ? ' private' : '', channel: m.channel || e.channel });
},
Expand Down

0 comments on commit c7e5777

Please sign in to comment.