2089 - Removed mention from message
gitea/salix/2089-chat_send_without_mention This commit looks good
Details
gitea/salix/2089-chat_send_without_mention This commit looks good
Details
This commit is contained in:
parent
d6e24d8319
commit
fe780ff7c6
|
@ -31,7 +31,7 @@ module.exports = Self => {
|
|||
const recipient = to.replace('@', '');
|
||||
|
||||
if (sender.name != recipient)
|
||||
return sendMessage(sender, to, `@${sender.name}: ${message} `);
|
||||
return sendMessage(sender, to, message);
|
||||
};
|
||||
|
||||
async function sendMessage(sender, channel, message) {
|
||||
|
@ -42,6 +42,7 @@ module.exports = Self => {
|
|||
return sendAuth(uri, {
|
||||
'channel': channel,
|
||||
'avatar': avatar,
|
||||
'alias': sender.nickname,
|
||||
'text': message
|
||||
}).catch(async error => {
|
||||
if (error.statusCode === 401 && !this.resendAttempted) {
|
||||
|
|
Loading…
Reference in New Issue