TextChannel's channel tab does not disappear when player's TextSource is removed from a TextChannel

When a player TextSource is removed from a TextChannel with :Destroy() when ChannelTabs is enabled, the TextChannel’s tab UI is still visible in the player’s chat and the player is able to send ‘ghost messages’ to the chat that do not have a username and can’t be seen by other players.

Reproduction Steps:

  1. Create a TextChannel in TextChatService
  2. Add a TextSource to the TextChannel with TextChannel:AddUserAsync(player.UserId). This will cause the channel tab for the TextChannel to appear in the chat.
  3. Remove the player from the TextChannel with TextSource:Destroy(). The player will still be able to see the channel’s ui tab in the chat.

Reproduction file:

TextChannel bug.rbxl (54.0 KB)

Expected behavior

I expect the channel tab UI to be removed from the player’s tab bar in the chat if their TextSource is removed from a TextChannel.

11 Likes

I can confirm that this happens and it is very annoying.

Unsure if this is a bug, but it also has channels with TextSource.CanSend disabled also show up. If this is not a bug, then I would love for it to be a feature. Perhaps having TextChannel.Visible

1 Like

Hey @ShinyGriffin - thanks for your report. We’re looking into this one and will try to get a fix out ASAP. Apologies for the inconvenience in the meantime!

3 Likes

Thanks so much! I would also like to include that if a TextChannel is destroyed, players who were in the channel can no longer type at all and I get this warning in the output: TextChatService is not enabled. Check TextChatService.ChatVersion and make sure it is not set as ChatVersion.LegacyChatService.

2 Likes

I made a separate bug report for this issue.

1 Like