}
this.chatMessagePrivate$ = this.chatRoom$.pipe(
switchMap((chatRoom: ChatRoom) => this.chatMessageService.getAllByChatRoomUid$(chatRoom.uid) // this function returns every me
我现在有以下模型 creator = models.ForeignKey('User') # points to the initialuser
room = models.ForeignKey('ChatRoom')
text = models.CharField记住,一个人可能有很多,很多,很多聊天室,因此我们不能仅仅用ChatRoom.obj