[BUG] - [ECT] - Preview crashes Discord when in a thread and the messages include the thread-starter message To Reproduce #13
Labels
No labels
bug
completed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
more info required
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Pharaoh2k/BetterDiscordStuff#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Preview crashes Discord when in a thread and the messages include the thread-starter message
To Reproduce
Open a thread, have fewer than [preview #] messages, hover over tab
Expected behavior
No crash
Screenshots
N/A
Discord Build (stable, ptb or canary):
Both Stable and PTB latest do this.
Additional context
Invariant Violation: Message must not be a thread starter message
at e.exports (https://discord.com/assets/web.37241dad1e8c6412.js:1:1284770)
at https://discord.com/assets/0e4e13abff41a916.js:1:361245
at betterdiscord/betterdiscord.js:64:20639
at i4 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1199624)
at oH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1227262)
at oZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1226175)
at oG (https://discord.com/assets/web.37241dad1e8c6412.js:12:1225789)
at o6 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1240045)
at lH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1271226)
at lF (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270296)
at lZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270138)
at lP (https://discord.com/assets/web.37241dad1e8c6412.js:12:1267264)
at cd (https://discord.com/assets/web.37241dad1e8c6412.js:12:1278623)
at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:1443719)
at A. (https://discord.com/assets/web.37241dad1e8c6412.js:12:16600035)
at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599804)
at MessagePort.w (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599863)
Nice catch. Should be fixed in 5.0.2
github.com/Pharaoh2k/BetterDiscordStuff@0eca90ec2aPlease let me know if it's good now.