bkanber / Slackadaisical

Command line Slack chat client.
GNU General Public License v3.0
277 stars 14 forks source link

Crash on opening conversation with deactivated accounts #8

Open jminz opened 6 years ago

jminz commented 6 years ago

On the left panel of the contacts and channels, I could find deactivated accounts, one I click on any one of those, I got the error:

TypeError: Cannot read property 'ts' of undefined
    at SlackAPI.markChannelRead (/Users/username/Slackadaisical/dist/SlackAPI.js:137:76)
    at MessagesList.loadHistory (/Users/username/Slackadaisical/dist/MessagesList.js:133:26)
    at /Users/username/Slackadaisical/dist/MessagesList.js:87:23
    at Request._callback (/Users/username/Slackadaisical/dist/SlackAPI.js:166:53)
    at Request.self.callback (/Users/username/Slackadaisical/node_modules/request/request.js:186:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/Users/username/Slackadaisical/node_modules/request/request.js:1163:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slackadaisical@0.1.1 start: `node dist/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slackadaisical@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/username/.npm/_logs/2018-02-05T18_22_47_112Z-debug.log