git ssb

10+

Matt McKegg / patchwork



Commit 1be7c1ab56d26c85f32d5533075f80a3cc216d5b

also confirm unblock!

Matt McKegg committed on 10/18/2017, 10:28:37 AM
Parent: 6be75bf8038ec9c4d1cdba801434c1ef4db7c753

Files changed

plugs/contact/html/follow-toggle.jschanged
plugs/contact/html/follow-toggle.jsView
@@ -55,9 +55,9 @@
5555 return when(youBlock, [
5656 h('a.ToggleButton.-unblocking', {
5757 'href': '#',
5858 'title': i18n('Click to unblock'),
59- 'ev-click': send(api.contact.async.unblock, id)
59+ 'ev-click': send(unblock, id)
6060 }, i18n('Blocked'))
6161 ], [
6262 when(youFollow,
6363 h('a.ToggleButton.-unsubscribe', {
@@ -88,5 +88,14 @@
8888 contact: id,
8989 blocking: true
9090 })
9191 }
92+
93+ function unblock (id) {
94+ // displays message confirm
95+ api.message.async.publish({
96+ type: 'contact',
97+ contact: id,
98+ blocking: false
99+ })
100+ }
92101 }

Built with git-ssb-web