Skip to content

Commit

Permalink
Switched rooms to use demo chats setup (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEverson authored Apr 30, 2024
1 parent f00e074 commit 310a8fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Sources/DittoChatPackage/Data/DittoService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,7 @@ extension DittoService {
func createRoom(name: String, isPrivate: Bool) -> DittoDocumentID? {
let roomId = UUID().uuidString
let collectionId = isPrivate ? UUID().uuidString : publicRoomsCollectionId

let messagesId: String = if DittoInstance.dittoShared != nil {
UUID().uuidString
} else {
messagesKey
}
let messagesId: String = UUID().uuidString

let room = Room(
id: roomId,
Expand Down

0 comments on commit 310a8fe

Please sign in to comment.