Comment history
Versions of a comment on Emoji React Panel Doesn't Load Immediately, newest first.
Current version | Edited by Chiara
Changes
The exact root cause is at gateway_event_handler.dart:848, it passes event.user.toJson(), but the toJson() leaves enum fields as Dart values, so mention_flags is a MentionReplyPreferences not a number and UserPartialResponse.fromJson() subsequently fails on v as num. That makes GuildCreateData skip the member without logging anything.Removed: This issue was partly mitigated by recent change https://github.com/fluxerapp/flutter_client/commit/77efb0c7d64257061a81e9d44a8b8f3b3adc2f57 (it now shows actions with @everyone permissions instead of unknown) but role-granted actions are still missing, since the member is still dropped.Removed: I already experimented with a fix based on this and it seems to work. Let me know if more details needed.Added: Added: This issue was partly mitigated by recent change https://github.com/fluxerapp/flutter_client/commit/77efb0c7d64257061a81e9d44a8b8f3b3adc2f57 (it now shows actions with @everyone permissions instead of unknown) but role-granted actions are still missing, since the member is still dropped.
Show
I found root cause of this in my fork. If a user has changed their "Notifications -> Mention preference" (any value but the default), then the user’s own member is dropped when mobile client parses READY, so permissions stay unknown until the member arrives some other way. To repro: in a community you don’t own, set the reply mention preference, reopen the app, and long-press: any role-granted action stays missing, which in some channels includes reactions.
The exact root cause is at gateway_event_handler.dart:848, it passes event.user.toJson(), but the toJson() leaves enum fields as Dart values, so mention_flags is a MentionReplyPreferences not a number and UserPartialResponse.fromJson() subsequently fails on v as num. That makes GuildCreateData skip the member without logging anything.
I already experimented with a fix based on this and it seems to work. Let me know if more details needed.
This issue was partly mitigated by recent change https://github.com/fluxerapp/flutter_client/commit/77efb0c7d64257061a81e9d44a8b8f3b3adc2f57 (it now shows actions with @everyone permissions instead of unknown) but role-granted actions are still missing, since the member is still dropped.
Edited by Chiara
Show
I found root cause of this in my fork. If a user has changed their "Notifications -> Mention preference" (any value but the default), then the user’s own member is dropped when mobile client parses READY, so permissions stay unknown until the member arrives some other way. To repro: in a community you don’t own, set the reply mention preference, reopen the app, and long-press: any role-granted action stays missing, which in some channels includes reactions.
The exact root cause is at gateway_event_handler.dart:848, it passes event.user.toJson(), but the toJson() leaves enum fields as Dart values, so mention_flags is a MentionReplyPreferences not a number and UserPartialResponse.fromJson() subsequently fails on v as num. That makes GuildCreateData skip the member without logging anything.
This issue was partly mitigated by recent change https://github.com/fluxerapp/flutter_client/commit/77efb0c7d64257061a81e9d44a8b8f3b3adc2f57 (it now shows actions with @everyone permissions instead of unknown) but role-granted actions are still missing, since the member is still dropped.
I already experimented with a fix based on this and it seems to work. Let me know if more details needed.