1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 23:18:31 +00:00
Fixed: More tweaks to the updated chat buffer logic necessary to integrate with Twitch's native Pause Chat.
This commit is contained in:
SirStendec 2019-06-04 12:20:44 -04:00
parent 5f41206df8
commit 1e1598a2fc
2 changed files with 2 additions and 2 deletions

View file

@ -951,8 +951,8 @@ export default class ChatHook extends Module {
// When we remove less then expected, we want to keep track
// of that so we can return the extra messages from getMessages.
this.ffz_extra = target - last;
this.buffer = buffer.slice(removed % 2 !== 0 ? Math.max(target - 4, last) : target);
this.ffz_extra = buffer.length - count;
} else {
this.ffz_extra = 0;