-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat creator role is null instead of admin #20
Comments
Hi @Parfyonator, Thanks for reporting this bug, I fixed it here #19, in the next few days I will release this new release. |
Hi @rickypid. Thanks for the latest update. Really excited to test if the user status is working now. Unfortunately I cannot confirm I still had to do the following modification here for it to work:
Also I'm experiencing strange behaviour. All user roles are
Output: But when I print roles here I get an array of
Output: |
Sorry for the little bug, I didn't notice it, reading the users objects coming from the view I didn't parse the roles correctly. try #21 |
Just tried it. Seems to work fine now. Thanks for help! |
Co-authored-by: riccardocucia <[email protected]>
Released, thanks for the support! |
General
What bug do you experience? 🐞
When creating a group room the default role for the user creating a chat is 'admin' but in reality it turns out to be
null
as for all other users.How can it be reproduced? 🤔
Create a group chat room using
createGroupRoom
method and checkuserRoles
column for the corresponding chat room in Supabase project inchats.rooms
table.What behaviour is expected? 💡
Set the default role for chat creator to be 'admin'.
Extras
Screenshots or videos 📸
If applicable, add screenshots or videos to help explain your problem.
Code snippets 📝
Fix suggestion: add the following line after
fetchUser
increateGroupRoom
method.Although role is being passed to
fetchUser
but it is not used there.Environment info
Please specify the flutter, flutter_supabase_chat_core versions.
flutter: 3.22.0
flutter_supabase_chat_core: 1.1.0
flutter doctor -v
output 👇Platform
Device (e.g. Android emulator, iOS simulator, Samsung Galaxy S21): all platforms
OS version (e.g. iOS 14.5, Android 11): any version
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: