Skip to content
Extraits de code Groupes Projets
Valider 7deae2b5 rédigé par Elliu's avatar Elliu Validation de bridge
Parcourir les fichiers

Fix embed reply on discord displaying unedited discord message when

replying to edited message from matrix
parent 845ea4a9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!4Fix empty message with image not going through bridge
...@@ -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.
Veuillez vous inscrire ou vous pour commenter