git ssb

16+

Dominic / patchbay



Commit 6151ce3e3718887750c939a25d0dec1f7d140794

Merge pull request #189 from ssbc/show-private

Add show private filter
Anders 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.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