Commit 6151ce3e3718887750c939a25d0dec1f7d140794
Merge pull request #189 from ssbc/show-private
Add show private filterAnders Rune Jensen authored on 4/12/2018, 9:57:49 PM
GitHub committed on 4/12/2018, 9:57:49 PM
Parent: 0aa1e55ffcfbd06056d917ca218a05fb8733cbae
Parent: 1913ce8ca8315e6ff79b5af53d1c27b960cb9277
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