mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 10:38:30 +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
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
||||||
FrankerFaceZ.Logger = Logger;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
const VER = FrankerFaceZ.version_info = {
|
||||||
major: 4, minor: 0, revision: 0, extra: '-rc19.2',
|
major: 4, minor: 0, revision: 0, extra: '-rc19.3',
|
||||||
commit: __git_commit__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -1422,9 +1422,10 @@ export default class ChatHook extends Module {
|
||||||
if ( chat.chatBuffer )
|
if ( chat.chatBuffer )
|
||||||
chat.chatBuffer.ffzController = chat;
|
chat.chatBuffer.ffzController = chat;
|
||||||
|
|
||||||
if ( props.channelID !== chat.props.channelID ) {
|
if ( ! chat._ffz_room || props.channelID !== chat.props.channelID ) {
|
||||||
this.removeRoom(chat);
|
this.removeRoom(chat);
|
||||||
this.chatMounted(chat, props);
|
if ( chat._ffz_mounted )
|
||||||
|
this.chatMounted(chat, props);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1525,9 +1526,10 @@ export default class ChatHook extends Module {
|
||||||
|
|
||||||
|
|
||||||
containerUpdated(cont, props) {
|
containerUpdated(cont, props) {
|
||||||
if ( props.channelID !== cont.props.channelID ) {
|
if ( ! cont._ffz_room || props.channelID !== cont.props.channelID ) {
|
||||||
this.removeRoom(cont);
|
this.removeRoom(cont);
|
||||||
this.containerMounted(cont, props);
|
if ( cont._ffz_mounted )
|
||||||
|
this.containerMounted(cont, props);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue