mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 14:21:05 +01:00
Make conversations open when they are created
This commit is contained in:
@@ -16,6 +16,7 @@ var Whisper = Whisper || {};
|
||||
|
||||
this.listenTo(this.model, 'change', this.render); // auto update
|
||||
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
||||
this.listenTo(this.model, 'render', this.open);
|
||||
},
|
||||
|
||||
open: function(e) {
|
||||
|
||||
@@ -47,6 +47,7 @@ var Whisper = Whisper || {};
|
||||
var message_input = this.$el.find('input.send-message');
|
||||
thread.sendMessage(message_input.val());
|
||||
this.remove();
|
||||
thread.trigger('render');
|
||||
}
|
||||
} catch(ex) {}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user