1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 00:00:53 +00:00

3.5.328. Big refactor to how channel metadata is rendered. Follow buttons and SRL races are working again. Better debugging info for logs. Closes #37.

This commit is contained in:
SirStendec 2016-10-13 23:05:54 -04:00
parent 4e2c2f5056
commit 0e939e30ee
16 changed files with 859 additions and 902 deletions

View file

@ -49,22 +49,15 @@ FFZ.prototype.modify_viewer_list = function(component) {
// Get the broadcaster name.
var Channel = utils.ember_lookup('controller:channel'),
room_id = this.get('model.id'),
broadcaster = Channel && Channel.get('model.id');
broadcaster = room_id = this.get('model.id');
// We can get capitalization for the broadcaster from the channel.
if ( broadcaster ) {
var display_name = Channel.get('model.display_name');
if ( Channel && Channel.get('channelModel.id') === room_id ) {
var display_name = Channel.get('channelModel.displayName');
if ( display_name )
FFZ.capitalization[broadcaster] = [display_name, Date.now()];
}
// If the current room isn't the channel's chat, then we shouldn't
// display them as the broadcaster.
if ( room_id !== broadcaster )
broadcaster = null;
// Iterate over everything~!
for(var i=0; i < VIEWER_CATEGORIES.length; i++) {
var data = raw_viewers[VIEWER_CATEGORIES[i][0]],