Commit a6a59db36ece748b70579031447cb554d68038a1
Enable emoji lock icon for private mini messages
cel committed on 12/11/2016, 5:56:12 PMParent: f7a7ac225c3e196c63cd6645e35ebed80aafbfcc
Files changed
modules_basic/private.js | changed |
modules_basic/private.js | ||
---|---|---|
@@ -4,18 +4,8 @@ | ||
4 | 4 … | var pull = require('pull-stream') |
5 | 5 … | var Scroller = require('pull-scroll') |
6 | 6 … | var ref = require('ssb-ref') |
7 | 7 … | |
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 | - | |
18 | 8 … | function map(ary, iter) { |
19 | 9 … | if(Array.isArray(ary)) return ary.map(iter) |
20 | 10 … | } |
21 | 11 … | |
@@ -25,9 +15,9 @@ | ||
25 | 15 … | message_unbox: 'first', |
26 | 16 … | sbot_log: 'first', |
27 | 17 … | sbot_whoami: 'first', |
28 | 18 … | avatar_image_link: 'first', |
29 | -// emoji_link: 'first' | |
19 … | + emoji_url: 'first' | |
30 | 20 … | } |
31 | 21 … | |
32 | 22 … | exports.gives = { |
33 | 23 … | builtin_tabs: true, |
@@ -115,9 +105,9 @@ | ||
115 | 105 … | }, |
116 | 106 … | |
117 | 107 … | message_content_mini: function (msg, sbot) { |
118 | 108 … | if (typeof msg.value.content === 'string') { |
119 | - var icon = false //api.emoji_url('lock') | |
109 … | + var icon = api.emoji_url('lock') | |
120 | 110 … | return icon |
121 | 111 … | ? h('img', {className: 'emoji', src: icon}) |
122 | 112 … | : 'PRIVATE' |
123 | 113 … | } |
Built with git-ssb-web