feat: normalize dm channel tag to lowercase in channel creation

The tag parameter for direct message channels was changed from uppercase "DM" to lowercase "dm" in the ChannelService.create call, ensuring consistent tag formatting across the codebase for private chat channels.
This commit is contained in:
2025-02-11 14:40:04 +00:00
parent 5ce1211616
commit c6d4e8959f
+1 -1
View File
@@ -59,7 +59,7 @@ class ChannelService(BaseService):
if channel_member:
return await self.get(uid=channel_member["channel_uid"])
channel = await self.create(
"DM", user1, tag="DM"
"DM", user1, tag="dm"
)
await self.services.channel_member.create_dm(
channel["uid"], user1, user2