1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00
* Changed: Changing the font size of chat now affects the chat input box.
* Fixed: The Block and Hide Thumbnails buttons not appearing in the directory pages for games.
* Fixed: Handling of certain types of chat messages causing chat to fail to render anymore.
* Fixed: Clicking hosted channels in the Following Directory not showing the Host menu.
This commit is contained in:
SirStendec 2019-08-23 18:13:35 -04:00
parent 6b796ffa74
commit d150b9720d
4 changed files with 24 additions and 8 deletions

View file

@ -1536,8 +1536,14 @@ export default class ChatHook extends Module {
}
cls.prototype.postMessageToCurrentChannel = function(original, message) {
const original_msg = message;
message._ffz_checked = true;
// For certain message types, the message is contained within
// a message sub-object.
if ( message.type === t.chat_types.ChannelPointsReward )
message = message.message;
if ( original.channel ) {
let chan = message.channel = original.channel.toLowerCase();
if ( chan.startsWith('#') )
@ -1564,7 +1570,7 @@ export default class ChatHook extends Module {
message.message = original.message.body;
}
this.addMessage(message);
this.addMessage(original_msg);
}
}