diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:37:10 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:37:10 +0100 |
commit | aaa3204704b677b59b60dd2719080ead5a0c1274 (patch) | |
tree | 552805fd7e417d3f51bef1da0a51d34c0f2d0036 /LibMatrix/RoomTypes/GenericRoom.cs | |
parent | Cleanup, fixes, fix proxy support (diff) | |
download | LibMatrix-bak-aaa3204704b677b59b60dd2719080ead5a0c1274.tar.xz |
State vs Timeline events
Diffstat (limited to 'LibMatrix/RoomTypes/GenericRoom.cs')
-rw-r--r-- | LibMatrix/RoomTypes/GenericRoom.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs index 700e530..b81713a 100644 --- a/LibMatrix/RoomTypes/GenericRoom.cs +++ b/LibMatrix/RoomTypes/GenericRoom.cs @@ -227,7 +227,7 @@ public class GenericRoom { await (await _httpClient.PutAsJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/state/{eventType}/{stateKey}", content)) .Content.ReadFromJsonAsync<EventIdResponse>(); - public async Task<EventIdResponse?> SendTimelineEventAsync(string eventType, EventContent content) { + public async Task<EventIdResponse?> SendTimelineEventAsync(string eventType, TimelineEventContent content) { var res = await _httpClient.PutAsJsonAsync( $"/_matrix/client/v3/rooms/{RoomId}/send/{eventType}/" + Guid.NewGuid(), content, new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull |