- {room.messages.length === 0 ? (
-
-
No messages yet. Start the conversation!
-
- ) : (
- room.messages.map((m: any, index: any) => (
-
-
- {Array.from(usersMetadataCacheRef.current).find(u => u.id == m?.userId)?.email}
- {new Date(m?.createdAt).toLocaleTimeString()}
-
-
{m?.content}
-
- ))
- )}
- {/* This div will be used to scroll to the bottom */}
-
-