1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-31 10:20: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

@ -1,7 +1,7 @@
{
"name": "frankerfacez",
"author": "Dan Salvato LLC",
"version": "4.9.2",
"version": "4.9.3",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"license": "Apache-2.0",
"scripts": {

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);
}
}

View file

@ -218,10 +218,20 @@ export default class Input extends Module {
this.EmoteSuggestions.on('mount', this.overrideEmoteMatcher, this);
this.MentionSuggestions.on('mount', this.overrideMentionMatcher, this);
this.on('site.css_tweaks:update-chat-css', () => {
for (const chat_input of this.ChatInput.instances)
chat_input.resizeInput();
}, this);
this.on('site.css_tweaks:update-chat-css', this.resizeInput, this);
}
resizeInput() {
if ( this._resize_waiter )
cancelAnimationFrame(this._resize_waiter);
this._resize_waiter = requestAnimationFrame(() => this._resizeInput())
}
_resizeInput() {
this._resize_waiter = null;
for (const chat_input of this.ChatInput.instances)
chat_input.resizeInput();
}

View file

@ -23,7 +23,7 @@ export default class Game extends SiteModule {
this.GameHeader = this.fine.define(
'game-header',
n => n.props && n.props.data && n.getBannerImage && n.getCategoryDisplayNameAndFollowButton,
n => n.props && n.props.data && n.getBannerImage && n.getFollowButton,
['dir-game-index', 'dir-community', 'dir-game-videos', 'dir-game-clips', 'dir-game-details']
);
@ -124,7 +124,7 @@ export default class Game extends SiteModule {
update_hidden();
buttons.appendChild(<div class="ffz-directory-buttons">
buttons.appendChild(<div class="tw-mg-t-1 ffz-directory-buttons">
{block_btn}
{hidden_btn}
</div>);