Commit c56c903653fc2e7f3538666e516e135a0571f0a6
remove sorting by unread state, after trying it, it was confusing to have the message you just went into go to another place
Dominic Tarr committed on 8/17/2017, 5:16:47 AMParent: 6c2d62189f2bd14a50a90b56b6e4b20393233a56
Files changed
app/page/home.js | changed |
app/page/home.js | ||
---|---|---|
@@ -109,9 +109,12 @@ | ||
109 | 109 | // console.log('unread', thread.unread, +!!thread.unread) |
110 | 110 | return thread |
111 | 111 | }) |
112 | 112 | .sort(function (a, b) { |
113 | - return ((!!b.unread) - (!!a.unread)) || (latestUpdate(b) - latestUpdate(a)) | |
113 | + return ( | |
114 | + //((!!b.unread) - (!!a.unread)) || | |
115 | + (latestUpdate(b) - latestUpdate(a)) | |
116 | + ) | |
114 | 117 | }) |
115 | 118 | |
116 | 119 | // console.log(groupedThreads.map(function (thread) { |
117 | 120 | // return {ch: thread.value.content.channel, unread: thread.unread, thread: thread} |
Built with git-ssb-web