From aa396516121ad636c78b1686365d1f92ac962762 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 22 May 2021 19:57:31 -0400 Subject: [PATCH] deletemymsgs: don't parse event content We don't use it. --- deletemymsgs/cmd.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/deletemymsgs/cmd.go b/deletemymsgs/cmd.go index 3006eb8..f149d11 100644 --- a/deletemymsgs/cmd.go +++ b/deletemymsgs/cmd.go @@ -41,10 +41,6 @@ func deletemymsgs(roomID id.RoomID, types []string) error { // stop mautrix from ignoring unparsable events syncer.ParseEventContent = false syncer.OnEvent(func (source mautrix.EventSource, evt *event.Event) { - // try parsing; normally this is done for us, but we're doing it - // manually since there may be unparsable events (say, when the - // room contains custom events) - evt.Content.ParseRaw(evt.Type) // skip events that we didn't send if evt.Sender != client.UserID { return -- 2.38.4