Commit c72544707f7832546326e266f095b59e7ff40f3e
/notifications - hopefully squash duplicate message bug
mixmix committed on 10/13/2018, 11:33:12 AMParent: 604bfba232f38fbfe19238adda988fe86e0131d7
Files changed
app/page/notifications.js | changed |
app/page/notifications.js | |||
---|---|---|---|
@@ -65,11 +65,15 @@ | |||
65 | 65 … | function pullMentions (opts) { | |
66 | 66 … | const query = [{ | |
67 | 67 … | $filter: { | |
68 | 68 … | dest: api.keys.sync.id(), | |
69 | - timestamp: { $gt: 0 }, | ||
69 … | + timestamp: { $gt: 0 } | ||
70 … | + } | ||
71 … | + }, { | ||
72 … | + $filter: { | ||
70 | 73 … | value: { | |
71 | 74 … | author: { $ne: api.keys.sync.id() } // not my messages! | |
75 … | + // NOTE putting this in second filter might be necessary to stop index trying to use this author value | ||
72 | 76 … | } | |
73 | 77 … | } | |
74 | 78 … | }] | |
75 | 79 … |
Built with git-ssb-web