mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 18:06:55 +00:00
4.9.3
* 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:
parent
6b796ffa74
commit
d150b9720d
4 changed files with 24 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue