1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 02:16:54 +00:00

3.5.472. Add new Verified badge. Add separate transparent image support for badges. Misc. minor bug fixes.

This commit is contained in:
SirStendec 2017-04-22 22:34:22 -04:00
parent e2803a7e1d
commit efaf46ee75
13 changed files with 183 additions and 71 deletions

View file

@ -1485,11 +1485,17 @@ FFZ.prototype.modify_moderation_card = function(component) {
room_id = Chat && Chat.get('currentRoom.id'),
user_id = this.get('cardInfo.user.id'),
ffz_room = f.rooms && f.rooms[room_id],
chat_history = ffz_room && ffz_room.user_history && ffz_room.user_history[user_id] || [],
chat_history = ffz_room && ffz_room.user_history ? (ffz_room.user_history[user_id] || []) : null,
el = this.get('element'),
history = el.querySelector('.chat-history.live-history');
if ( chat_history === null ) {
if ( history )
jQuery(history).remove();
return;
}
if ( ! history ) {
history = utils.createElement('ul', 'moderation-card__actions chat-history live-history');
el.appendChild(history);