Skip to content
Extraits de code Groupes Projets
Valider 771521a8 rédigé par Kai A. Hiller's avatar Kai A. Hiller
Parcourir les fichiers

Make throwing EventUnknownError pretty


Signed-off-by: default avatarKai A. Hiller <V02460@gmail.com>
parent 54b14730
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -139,14 +139,12 @@ export class MatrixEventProcessor {
} else if (event.type === "m.room.encryption" && context.rooms.remote) {
try {
await this.HandleEncryptionWarning(event.room_id);
return;
} catch (err) {
throw wrapError(err, Unstable.EventNotHandledError, `Failed to handle encrypted room, ${err}`);
}
} else {
throw new Unstable.EventUnknownError("Got non m.room.message event");
return;
}
throw new Unstable.EventUnknownError(); // Shouldn't be reachable
throw new Unstable.EventUnknownError(`${event.event_id} not processed by bridge`);
}
public async HandleEncryptionWarning(roomId: string): Promise<void> {
......
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