git ssb

16+

Dominic / patchbay



Commit 1913ce8ca8315e6ff79b5af53d1c27b960cb9277

Add show private filter

Anders Rune Jensen committed on 4/11/2018, 8:24:01 PM
Parent: 0aa1e55ffcfbd06056d917ca218a05fb8733cbae

Files changed

app/html/filter.jschanged
app/html/filter.jsView
@@ -90,8 +90,9 @@
9090 toggle({ type: 'about' }),
9191 toggle({ type: 'contact' }),
9292 toggle({ type: 'channel' }),
9393 toggle({ type: 'pub' }),
94 + toggle({ type: 'private' }),
9495 toggle({ type: 'chess' })
9596 ]),
9697 h('div.root-messages', [
9798 toggle({ type: 'rootMessages', filterGroup: 'only', label: 'Root messages only' })
@@ -185,8 +186,12 @@
185186 if (/^chess/.test(type)) {
186187 type = 'chess'
187188 }
188189
190 + if (typeof msg.value.content == 'string') {
191 + type = 'private'
192 + }
193 +
189194 return get(filterSettings(), ['show', type], true)
190195 }
191196
192197 var downScrollAborter

Built with git-ssb-web