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