lavab / api

Lavaboom's main backend API.
https://lavaboom.com
23 stars 11 forks source link

Moving thread to trash/spam and thread.is_read flag #122

Closed let4be closed 9 years ago

let4be commented 9 years ago

Currently we mark thread as read after a certain timeout(4 sec) if user moves the thread faster to his trash/spam thread stays unread

we do not show it in the Inbox, but labels.list has no idea about new labels filtering Inbox -Trash -Spam...

let4be commented 9 years ago

I could just issue a separate request but I try to keep request count as low as possible,+ it could be useful to have original is_read status preserved(not sure) to be able to restore it when user restores thread from trash/spam, what do you think guys?

pzduniak commented 9 years ago

It took me a while to parse contents of this issue, but I think I know what's wrong. On it!

pzduniak commented 9 years ago

Actually I'm not sure what's the issue here, but I transformed input in threads.update into pointers and I compare them with nil before trying to do anything with them. Hopefully it fixes whatever you meant here.