How do you store a list in a tinydb (and for separate chat rooms)

I am making a texting app with separate chat rooms where I want to save the users previous chat rooms can anyone help?

See below how to work with tinydb and lists


How to make cloudDB chat with private rooms "

How to create separate chat rooms might help you figure your code out.

and more ideas How do I generate a QR code to allow patients to join private chat room?

Using a TinyDB for a chat room? Not sure how you would do that, most developers us a CloudDB or FirebaseDB (which are similar to a TinyDB). A TinyDB only stores to a single Android; CloudDB and FirdebaseDB exist in the cloud and allow multiple users.