File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,9 @@ void showTopicActionSheet(BuildContext context, {
165
165
166
166
final visibilityOptions = < UserTopicVisibilityPolicy > [];
167
167
final visibilityPolicy = store.topicVisibilityPolicy (channelId, topic);
168
- if (subscription != null && ! subscription.isMuted) {
168
+ if (subscription == null ) {
169
+ // Not subscribed to the channel; there is no user topic change to be made.
170
+ } else if (! subscription.isMuted) {
169
171
// Channel is subscribed and not muted.
170
172
switch (visibilityPolicy) {
171
173
case UserTopicVisibilityPolicy .muted:
@@ -189,7 +191,7 @@ void showTopicActionSheet(BuildContext context, {
189
191
// our data structures.
190
192
assert (false );
191
193
}
192
- } else if (subscription != null && subscription.isMuted) {
194
+ } else {
193
195
// Channel is muted.
194
196
if (supportsUnmutingTopics) {
195
197
switch (visibilityPolicy) {
@@ -215,8 +217,6 @@ void showTopicActionSheet(BuildContext context, {
215
217
assert (false );
216
218
}
217
219
}
218
- } else {
219
- // Not subscribed to the channel; there is no user topic change to be made.
220
220
}
221
221
optionButtons.addAll (visibilityOptions.map ((to) {
222
222
return UserTopicUpdateButton (
You can’t perform that action at this time.
0 commit comments