Puyodead1 / powercord-stafftags

MIT License
25 stars 9 forks source link

Opening a home channel causes Discord to crash #24

Closed asportnoy closed 2 years ago

asportnoy commented 2 years ago

Opening the home channel in a server (eg the one in https://discord.gg/rythm) with this plugin enabled causes Discord to crash.

Puyodead1 commented 2 years ago

It seems to be working fine on my end, are you sure its this plugin?

asportnoy commented 2 years ago

Yes, I was only able to replicate it with the plugin enabled. Disabling it fixed the issue. Again, this has to be a home channel, it works in regular ones.

asportnoy commented 2 years ago

Forgot to specify earlier but the error was https://reactjs.org/docs/error-decoder.html/?invariant=152&args%5B%5D=MessageHeader

Puyodead1 commented 2 years ago

I tried it with the home channel in the server you mentioned edit: just tried it again and it crashed :P

asportnoy commented 2 years ago

Figured out the issue. The home channel doesn't have an ID, so this code makes the function return undefined. I'll PR the fix in a sec.

Puyodead1 commented 2 years ago

sorry, was already working on it and didn't see this. Fixed in d97a65487e7349f57dc1e19611681e1791160c0b