~edwargix/axon

aa396516121ad636c78b1686365d1f92ac962762 — David Florness 3 years ago 2fcb586
deletemymsgs: don't parse event content

We don't use it.
1 files changed, 0 insertions(+), 4 deletions(-)

M deletemymsgs/cmd.go
M deletemymsgs/cmd.go => deletemymsgs/cmd.go +0 -4
@@ 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