A list of 0 first party or third party emotes prevents the other list to load anyway
Entrivax opened this issue · comments
Having an empty array of thirdParty
or firstParty
embed emotes causes to not load the other list.
For example, I have a chat dump containing a list of 0 elements in the third party emotes, preventing the first party ones to not load either.
In my case, I try to convert a chat dump from YouTube to fit the current chat format used by Ganymede, without support of third party emotes. So it falls in the default case and not loading the embedded emotes.
Lines 521 to 566 in 1b4d525
![image](https://private-user-images.githubusercontent.com/1197915/294622481-41fc2608-d6fc-453c-945d-c111cd6bc070.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYzMDM5NzYsIm5iZiI6MTcxNjMwMzY3NiwicGF0aCI6Ii8xMTk3OTE1LzI5NDYyMjQ4MS00MWZjMjYwOC1kNmZjLTQ1M2MtOTQ1ZC1jMTExY2Q2YmMwNzAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjFUMTUwMTE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTRhZTM5MjFkNjNmYzQ0YjliODFmZTZlMGU4MjBiYzRhOWIxNTgyMjlhZTI0Y2QxOTAxYmMyZjMwMTI1YWZlNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.JMvkAkL91goURj2VnVerm5POLkTre0pe-WVb1eGKkSs)
My current workaround for this is to add one fake emote in the thirdParty
array like this:
"thirdParty":[{"id":"NOEMOTE","imageScale":1,"data":"","name":"NOEMOTE","url":null,"width":0,"height":0}]