Return the angular promise on sendMessage
This commit is contained in:
parent
d4cffcf38f
commit
706b5838a1
|
@ -396,8 +396,13 @@ weechat.factory('connection', ['$q', '$rootScope', '$log', '$store', 'handlers',
|
||||||
this.websocket.close();
|
this.websocket.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Format and send a weechat message
|
||||||
|
*
|
||||||
|
* @returns the angular promise
|
||||||
|
*/
|
||||||
var sendMessage = function(message) {
|
var sendMessage = function(message) {
|
||||||
send(weeChat.Protocol.formatInput({
|
return send(weeChat.Protocol.formatInput({
|
||||||
buffer: models.getActiveBuffer()['fullName'],
|
buffer: models.getActiveBuffer()['fullName'],
|
||||||
data: message
|
data: message
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue