Commit 47fc18ed234093a4d2a1bfb244f2f01893562894
Fix channel view
cel committed on 12/10/2016, 7:25:21 PMParent: 83245c062d376c4be49099e9af5aeb085c8eb681
Files changed
modules_extra/channel.js | changed |
modules_extra/channel.js | |||
---|---|---|---|
@@ -3,14 +3,8 @@ | |||
3 | 3 … | var pull = require('pull-stream') | |
4 | 4 … | var Scroller = require('pull-scroll') | |
5 | 5 … | var mfr = require('map-filter-reduce') | |
6 | 6 … | ||
7 | -//var plugs = require('../plugs') | ||
8 | -//var message_render = plugs.first(exports.message_render = []) | ||
9 | -//var message_compose = plugs.first(exports.message_compose = []) | ||
10 | -//var sbot_log = plugs.first(exports.sbot_log = []) | ||
11 | -//var sbot_query = plugs.first(exports.sbot_query = []) | ||
12 | - | ||
13 | 7 … | exports.needs = { | |
14 | 8 … | message_render: 'first', | |
15 | 9 … | message_compose: 'first', | |
16 | 10 … | sbot_log: 'first', | |
@@ -60,16 +54,16 @@ | |||
60 | 54 … | ||
61 | 55 … | pull( | |
62 | 56 … | api.sbot_log({old: false}), | |
63 | 57 … | pull.filter(matchesChannel), | |
64 | - Scroller(div, content, message_render, true, false) | ||
58 … | + Scroller(div, content, api.message_render, true, false) | ||
65 | 59 … | ) | |
66 | 60 … | ||
67 | 61 … | pull( | |
68 | 62 … | api.sbot_query({reverse: true, query: [ | |
69 | 63 … | {$filter: {value: {content: {channel: channel}}}} | |
70 | 64 … | ]}), | |
71 | - Scroller(div, content, message_render, false, false) | ||
65 … | + Scroller(div, content, api.message_render, false, false) | ||
72 | 66 … | ) | |
73 | 67 … | ||
74 | 68 … | return div | |
75 | 69 … | } |
Built with git-ssb-web