We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c34c6 commit f99f66bCopy full SHA for f99f66b
lib/model/channel.dart
@@ -212,9 +212,9 @@ mixin ChannelStore on UserStore {
212
}) {
213
assert(inChannel.channelPostPolicy != null);
214
final role = selfUser.role;
215
- // We let the users with [unknown] role to send the message, then the server
216
- // will decide to accept it or not based on its actual role.
217
- if (role == UserRole.unknown) return true;
+
+ // (Could early-return true on [UserRole.unknown],
+ // but pre-333 servers shouldn't be giving us an unknown role.)
218
219
switch (inChannel.channelPostPolicy!) {
220
case ChannelPostPolicy.any: return true;
0 commit comments