git ssb

16+

Dominic / patchbay



Commit a6a59db36ece748b70579031447cb554d68038a1

Enable emoji lock icon for private mini messages

cel committed on 12/11/2016, 5:56:12 PM
Parent: f7a7ac225c3e196c63cd6645e35ebed80aafbfcc

Files changed

modules_basic/private.jschanged
modules_basic/private.jsView
@@ -4,18 +4,8 @@
44 var pull = require('pull-stream')
55 var Scroller = require('pull-scroll')
66 var ref = require('ssb-ref')
77
8-//var plugs = require('../plugs')
9-//
10-//var message_render = plugs.first(exports.message_render = [])
11-//var message_compose = plugs.first(exports.message_compose = [])
12-//var message_unbox = plugs.first(exports.message_unbox = [])
13-//var sbot_log = plugs.first(exports.sbot_log = [])
14-//var sbot_whoami = plugs.first(exports.sbot_whoami = [])
15-//var avatar_image_link = plugs.first(exports.avatar_image_link = [])
16-//var emoji_url = plugs.first(exports.emoji_url = [])
17-
188 function map(ary, iter) {
199 if(Array.isArray(ary)) return ary.map(iter)
2010 }
2111
@@ -25,9 +15,9 @@
2515 message_unbox: 'first',
2616 sbot_log: 'first',
2717 sbot_whoami: 'first',
2818 avatar_image_link: 'first',
29-// emoji_link: 'first'
19 + emoji_url: 'first'
3020 }
3121
3222 exports.gives = {
3323 builtin_tabs: true,
@@ -115,9 +105,9 @@
115105 },
116106
117107 message_content_mini: function (msg, sbot) {
118108 if (typeof msg.value.content === 'string') {
119- var icon = false //api.emoji_url('lock')
109 + var icon = api.emoji_url('lock')
120110 return icon
121111 ? h('img', {className: 'emoji', src: icon})
122112 : 'PRIVATE'
123113 }

Built with git-ssb-web