rememberChat

fun rememberChat(room: Room = RoomLocal.current): Chat

Creates a Chat that is remembered across compositions.

Changing the room value will result in a new Chat object being created.