Before this commit, there was a traceback when attempting to mark all messages as read from the 'Inbox' of Discuss. This is due to resetting the 'needaction' counter on threads that do not not track 'needaction', such as the 'Starred' mailbox. In fact, only channels do track them and handle a needaction counter, so this should only be applied on channels.