Commit 1913ce8ca8315e6ff79b5af53d1c27b960cb9277
Add show private filter
Anders Rune Jensen committed on 4/11/2018, 8:24:01 PMParent: 0aa1e55ffcfbd06056d917ca218a05fb8733cbae
Files changed
app/html/filter.js | changed |
app/html/filter.js | |||
---|---|---|---|
@@ -90,8 +90,9 @@ | |||
90 | 90 … | toggle({ type: 'about' }), | |
91 | 91 … | toggle({ type: 'contact' }), | |
92 | 92 … | toggle({ type: 'channel' }), | |
93 | 93 … | toggle({ type: 'pub' }), | |
94 … | + toggle({ type: 'private' }), | ||
94 | 95 … | toggle({ type: 'chess' }) | |
95 | 96 … | ]), | |
96 | 97 … | h('div.root-messages', [ | |
97 | 98 … | toggle({ type: 'rootMessages', filterGroup: 'only', label: 'Root messages only' }) | |
@@ -185,8 +186,12 @@ | |||
185 | 186 … | if (/^chess/.test(type)) { | |
186 | 187 … | type = 'chess' | |
187 | 188 … | } | |
188 | 189 … | ||
190 … | + if (typeof msg.value.content == 'string') { | ||
191 … | + type = 'private' | ||
192 … | + } | ||
193 … | + | ||
189 | 194 … | return get(filterSettings(), ['show', type], true) | |
190 | 195 … | } | |
191 | 196 … | ||
192 | 197 … | var downScrollAborter |
Built with git-ssb-web