This commit is contained in:
parent
f145354bec
commit
aba50ff519
|
@ -18,7 +18,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
||||||
let username = gClient.channel && gClient.channel._id || room;
|
let username = gClient.channel && gClient.channel._id || room;
|
||||||
if (username.length > 80) username = username.substr(0,79) + '…';
|
if (username.length > 80) username = username.substr(0,79) + '…';
|
||||||
|
|
||||||
webhook.send(options).catch(error => {
|
webhook.send(Object.assign(options, {username})).catch(error => {
|
||||||
handleError(error, `webhook fail in ${channel.id}`);
|
handleError(error, `webhook fail in ${channel.id}`);
|
||||||
channel.send(options).catch(error => handleError(error, `send fail in ${channel.id} after webhook send fail`));
|
channel.send(options).catch(error => handleError(error, `send fail in ${channel.id} after webhook send fail`));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue