Fixed bug where messages being marked ‘read’ due to opening a thread got duplicated