feat(chat) use the original message ID for processing

This is a prerequisite for operations that rely on previous messages, such as reactions.
This commit is contained in:
Patrick He
2024-08-06 09:30:37 -04:00
committed by Calin-Teodor
parent 55e49d699f
commit 825a7adecf
10 changed files with 59 additions and 51 deletions

View File

@@ -1338,14 +1338,14 @@ class API {
* @returns {void}
*/
notifyReceivedChatMessage(
{ body, id, nick, privateMessage, ts } = {}) {
if (APP.conference.isLocalId(id)) {
{ body, from, nick, privateMessage, ts } = {}) {
if (APP.conference.isLocalId(from)) {
return;
}
this._sendEvent({
name: 'incoming-message',
from: id,
from,
message: body,
nick,
privateMessage,