Commit 967755973d9d5182a4851e6d2e47ddd7b8c5dd1a
allow user ID in dnd list
Jake Burden committed on 4/27/2018, 5:42:24 PMParent: 9335d17ed8340bd51448ef36b39451818d2c33e5
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -23,9 +23,9 @@ | ||
23 | 23 … | }) |
24 | 24 … | |
25 | 25 … | function write (buf, enc, next) { |
26 | 26 … | var row = JSON.parse(buf.toString()) |
27 | - var isDnd = dnd.indexOf(row.channel) > -1 | |
27 … | + var isDnd = dnd.indexOf(row.channel) > -1 || dnd.indexOf(row.user) > -1 | |
28 | 28 … | var skip = row.type !== 'user_typing' || isDnd |
29 | 29 … | |
30 | 30 … | if (skip) return next() |
31 | 31 … |
Built with git-ssb-web