Add invite code creation

This commit is contained in:
Jon Staab
2024-10-16 10:14:33 -07:00
parent 9c300d40f6
commit bd94cc502b
5 changed files with 100 additions and 12 deletions
+2 -2
View File
@@ -298,9 +298,9 @@ export type Channel = {
messages: ChannelMessage[]
}
export const makeChannelId = (url: string, room: string) => `${url}'${room}`
export const makeChannelId = (url: string, room: string) => `${url}|${room}`
export const splitChannelId = (id: string) => id.split("'")
export const splitChannelId = (id: string) => id.split("|")
export const channels = derived(channelMessages, $channelMessages => {
const messagesByChannelId = new Map<string, ChannelMessage[]>()