From 61a69b505eb202fe32345b5af3a80ef601bc6799 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 6 Jun 2025 20:18:09 +0200 Subject: Synapse admin fixes, server resolution fixes --- LibMatrix/RoomTypes/GenericRoom.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LibMatrix/RoomTypes') diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs index bc1bc90..2eb1dba 100644 --- a/LibMatrix/RoomTypes/GenericRoom.cs +++ b/LibMatrix/RoomTypes/GenericRoom.cs @@ -461,8 +461,8 @@ public class GenericRoom { } } - public Task GetEventAsync(string eventId) => - Homeserver.ClientHttpClient.GetFromJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/event/{eventId}"); + public Task GetEventAsync(string eventId, bool includeUnredactedContent = false) => + Homeserver.ClientHttpClient.GetFromJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/event/{eventId}?fi.mau.msc2815.include_unredacted_content={includeUnredactedContent}"); public async Task RedactEventAsync(string eventToRedact, string? reason = null) { var data = new { reason }; -- cgit 1.5.1