mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
FS-9947 [verto_communicator] Do not try to parse empty chat messages
This commit is contained in:
parent
a46a67e12a
commit
ec83cb77f8
@ -617,6 +617,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||
case $.verto.enum.message.info:
|
||||
var body = params.body;
|
||||
var from = params.from_msg_name || params.from;
|
||||
if (!body) {
|
||||
console.log('Received an empty body: ', params);
|
||||
return;
|
||||
}
|
||||
$rootScope.$emit('chat.newMessage', {
|
||||
from: from,
|
||||
body: body
|
||||
|
Loading…
x
Reference in New Issue
Block a user