FEATURE: automatically sync "move to inbox" / "archive" state on messages

This commit is contained in:
Sam Saffron
2016-02-07 23:39:07 +11:00
parent d456150bb2
commit b0567f9c62
6 changed files with 48 additions and 12 deletions
@@ -632,6 +632,14 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
}
return;
}
case "move_to_inbox": {
topic.set("message_archived",false);
return;
}
case "archived": {
topic.set("message_archived",true);
return;
}
default: {
Em.Logger.warn("unknown topic bus message type", data);
}