git ssb

2+

ev / mvd



Commit b7c122f32a21918d997f6a13cc0d2e51f3ab4bcc

render follow/unfollow messages

Ev Bogue committed on 6/14/2018, 7:01:52 PM
Parent: 45e59d3471f3beeee49304361c2c16c9fc3c819f

Files changed

render.jschanged
render.jsView
@@ -29,8 +29,22 @@
2929 var privateMsg = h('span', ' ', h('img.emoji', {src: config.emojiUrl + 'lock.png'}), ' ', h('button.btn', 'Open'))
3030 message.appendChild(tools.mini(msg, privateMsg))
3131 return message
3232 }*/
33 + else if (msg.value.content.type == 'contact') {
34 + console.log(msg)
35 + if (msg.value.content.following == true) {
36 + var following = h('span', ' follows ', h('a', {href: '#' + msg.value.content.contact}, avatar.name(msg.value.content.contact)))
37 + message.appendChild(tools.mini(msg, following))
38 + }
39 +
40 + if (msg.value.content.following == false) {
41 + var unfollowing = h('span', ' unfollows ', h('a', {href: '#' + msg.value.content.contact}, avatar.name(msg.value.content.contact)))
42 + message.appendChild(tools.mini(msg, unfollowing))
43 + }
44 + return message
45 + }
46 +
3347 else if (msg.value.content.type == 'git-update') {
3448
3549 message.appendChild(tools.header(msg))
3650

Built with git-ssb-web