flutter_firebase_chat_core icon indicating copy to clipboard operation
flutter_firebase_chat_core copied to clipboard

Store message count in room data for easy filtering in Firestore

Open giorgio79 opened this issue 2 years ago • 1 comments
trafficstars

Would be nice to store message count in room data for easy Firestore filtering via the Firestore UI. It cannot filter for if exists or not.

giorgio79 avatar Feb 12 '23 04:02 giorgio79

I think you can do it by adding your own counter on metada inside room class model.

just add logic on dispose chat page to update room data when user close chat page.

kopianan avatar Mar 22 '24 10:03 kopianan