Rename createTemporary to dangerouslyCreateAndAdd

Class: `ConversationController`.

This function should not be used in application code as it creates potentially
invalid `Conversation` instances in our global conversation collection. We keep
making it available for testing purposes.
This commit is contained in:
Daniel Gasienica 2018-03-27 18:58:00 -04:00
parent 4e6d1e128f
commit 83c979fb84
4 changed files with 14 additions and 7 deletions

View file

@ -95,7 +95,7 @@
getUnsafe: function(id) {
return conversations.get(id);
},
createTemporary: function(attributes) {
dangerouslyCreateAndAdd: function(attributes) {
return conversations.add(attributes);
},
getOrCreate: function(id, type) {