Skip to content

Commit 70f7a38

Browse files
Changed uuid to userId
1 parent c98323c commit 70f7a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getting-started/getting-started/SceneDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
7878
func preloadData(_ chatProvider: PubNubChatProvider, completion: @escaping () -> Void) {
7979
// Creates a user object with uuid
8080
let user = PubNubChatUser(
81-
id: chatProvider.pubnubConfig.uuid,
81+
id: chatProvider.pubnubConfig.userId,
8282
name: "myFirstUser",
83-
avatarURL: URL(string: "https://picsum.photos/seed/\(chatProvider.pubnubConfig.uuid)/200")
83+
avatarURL: URL(string: "https://picsum.photos/seed/\(chatProvider.pubnubConfig.userId)/200")
8484
)
8585

8686
// Creates a channel object

0 commit comments

Comments
 (0)