Skip to content
Extraits de code Groupes Projets
Vérifiée Valider dc0271c1 rédigé par Elliu's avatar Elliu Validation de salixor
Parcourir les fichiers

Fix embed reply on discord displaying unedited discord message when

replying to edited message from matrix
parent 19be2c66
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -391,7 +391,8 @@ export class MatrixEventProcessor { ...@@ -391,7 +391,8 @@ export class MatrixEventProcessor {
if (!sourceEvent || !sourceEvent.content || !sourceEvent.content.body) { if (!sourceEvent || !sourceEvent.content || !sourceEvent.content.body) {
throw Error("No content could be found"); throw Error("No content could be found");
} }
const replyEmbed = (await this.EventToEmbed(sourceEvent, channel, true)).messageEmbed; const eventToTakeTextFrom = sourceEvent.unsigned?.["m.relations"]?.["m.replace"] ?? sourceEvent;
const replyEmbed = (await this.EventToEmbed(eventToTakeTextFrom, channel, true)).messageEmbed;
// if we reply to a discord member, ping them! // if we reply to a discord member, ping them!
if (this.bridge.isNamespacedUser(sourceEvent.sender)) { if (this.bridge.isNamespacedUser(sourceEvent.sender)) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter