Skip to content

Commit b337328

Browse files
committed
(demo) fix create room after self tag click
1 parent 406cfac commit b337328

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

demo/src/ChatContainer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,13 @@ export default {
652652
return this.loadRoom(query2)
653653
}
654654
655+
const users =
656+
user._id === this.currentUserId
657+
? [this.currentUserId]
658+
: [user._id, this.currentUserId]
659+
655660
const room = await firestoreService.addRoom({
656-
users: [user._id, this.currentUserId],
661+
users: users,
657662
lastUpdated: new Date()
658663
})
659664

0 commit comments

Comments
 (0)