mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
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:
@@ -92,7 +92,7 @@
|
||||
// Creates a view to display a new contact
|
||||
this.new_contact_view = new Whisper.NewContactView({
|
||||
el: this.$new_contact,
|
||||
model: ConversationController.createTemporary({
|
||||
model: ConversationController.dangerouslyCreateAndAdd({
|
||||
type: 'private',
|
||||
}),
|
||||
}).render();
|
||||
|
||||
Reference in New Issue
Block a user