File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,16 @@ String? decodeHashComponent(String str) {
56
56
// When you want to point the server to a location in a message list, you
57
57
// you do so by passing the `anchor` param.
58
58
Uri narrowLink (PerAccountStore store, Narrow narrow, {int ? nearMessageId}) {
59
- final apiNarrow = narrow.apiEncode ();
59
+ // TODO(server-7)
60
+ final apiNarrow = resolveDmElements (
61
+ narrow.apiEncode (), store.connection.zulipFeatureLevel! );
60
62
final fragment = StringBuffer ('narrow' );
61
63
for (ApiNarrowElement element in apiNarrow) {
62
64
fragment.write ('/' );
63
65
if (element.negated) {
64
66
fragment.write ('-' );
65
67
}
66
68
67
- if (element is ApiNarrowDm ) {
68
- final supportsOperatorDm = store.connection.zulipFeatureLevel! >= 177 ; // TODO(server-7)
69
- element = element.resolve (legacy: ! supportsOperatorDm);
70
- }
71
-
72
69
fragment.write ('${element .operator }/' );
73
70
74
71
switch (element) {
You can’t perform that action at this time.
0 commit comments