mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +00:00
4.0.0-rc19.3
* Fixed: If chat components don't yet have *any* props, wait to initialize FFZ's interactions with them so that things don't break.
This commit is contained in:
parent
8ea4e09bfd
commit
ebc671ae1e
2 changed files with 7 additions and 5 deletions
|
@ -1422,9 +1422,10 @@ export default class ChatHook extends Module {
|
|||
if ( chat.chatBuffer )
|
||||
chat.chatBuffer.ffzController = chat;
|
||||
|
||||
if ( props.channelID !== chat.props.channelID ) {
|
||||
if ( ! chat._ffz_room || props.channelID !== chat.props.channelID ) {
|
||||
this.removeRoom(chat);
|
||||
this.chatMounted(chat, props);
|
||||
if ( chat._ffz_mounted )
|
||||
this.chatMounted(chat, props);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1525,9 +1526,10 @@ export default class ChatHook extends Module {
|
|||
|
||||
|
||||
containerUpdated(cont, props) {
|
||||
if ( props.channelID !== cont.props.channelID ) {
|
||||
if ( ! cont._ffz_room || props.channelID !== cont.props.channelID ) {
|
||||
this.removeRoom(cont);
|
||||
this.containerMounted(cont, props);
|
||||
if ( cont._ffz_mounted )
|
||||
this.containerMounted(cont, props);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue