flutter_firebase_chat_core icon indicating copy to clipboard operation
flutter_firebase_chat_core copied to clipboard

I wan't to create a room with a specific userID

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

Hello 👋 I'm new to flutter I want to create a room with a specific userID. can't find it in the documentation do you have any example or idea to do it ? thank you !

letony77 avatar Jan 23 '23 11:01 letony77

@letony77 I've got this code snippet from my project, it accepts custom user id as value to create room

Future<types.Room> createroom( String value, String companyName, String companyImage) async { return await FirebaseChatCore.instance.createRoom(types.User(id: value), metadata: {"name": companyName, "image": companyImage}); }

kubawich avatar Jan 24 '23 18:01 kubawich