Hello,
If you create a TextChannel, register a direct chat requester with SetDirectChatRequester(), add another user with AddUserAsync(), then call Destroy() on it, the Server will crash (both in Studio or in real Roblox Servers)
The crash doesn’t happen with a TextChannel on which only AddUserAsync() has been called twice without SetDirectChatRequester() being called.
My system informations (even if I highly doubt that they’ll be useful as this bug occurs on Roblox Servers too) are:
- Windows 10 64bits
- NVIDIA GeForce GTX 1650
- Intel(R) Core™ i5-10300H CPU @ 2.50GHz
- 16GB of RAM
Here you can find the reproduction file: chat_whisper_bug.rbxl (55.8 KB)
Expected behavior
If everything would have been working correctly, I would have been able to create a TextChannel, set the direct chat requester and add another user respectively with SetDirectChatRequester() and AddUserAsync(), then call Destroy() on it without causing a server crash.
My current workaround to this crash is to create a text channel only with AddUserAsync(), while still doing a check before with TextChatService:CanUserDirectChatAsync()
A private message is associated with this bug report