/** * Removes a thread from the internal list and triggers its deletion event. */ private void forgetThread(WaveletBasedConversationThread threadToRemove) { String id = threadToRemove.getId(); assert replies.containsKey(id); replies.remove(id); threadToRemove.triggerOnDeleted(); }