Fix some formatting and enable pretty panics in non-debug mode. Closes #265
This commit is contained in:
@ -21,6 +21,7 @@ import (
|
||||
"crypto/tls"
|
||||
"encoding/gob"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -32,7 +33,6 @@ import (
|
||||
"runtime"
|
||||
dbg "runtime/debug"
|
||||
"time"
|
||||
"errors"
|
||||
|
||||
"maunium.net/go/mautrix"
|
||||
"maunium.net/go/mautrix/crypto/attachment"
|
||||
@ -845,9 +845,9 @@ func (c *Container) PrepareMediaMessage(room *rooms.Room, path string, rel *ifc.
|
||||
return nil, err
|
||||
}
|
||||
content := event.MessageEventContent{
|
||||
MsgType: resp.MsgType,
|
||||
Body: resp.Name,
|
||||
Info: resp.Info,
|
||||
MsgType: resp.MsgType,
|
||||
Body: resp.Name,
|
||||
Info: resp.Info,
|
||||
}
|
||||
if resp.EncryptionInfo != nil {
|
||||
content.File = &event.EncryptedFileInfo{
|
||||
|
@ -247,12 +247,12 @@ func (s *GomuksSyncer) GetFilterJSON(_ id.UserID) *mautrix.Filter {
|
||||
IncludeLeave: false,
|
||||
State: mautrix.FilterPart{
|
||||
LazyLoadMembers: true,
|
||||
Types: stateEvents,
|
||||
Types: stateEvents,
|
||||
},
|
||||
Timeline: mautrix.FilterPart{
|
||||
LazyLoadMembers: true,
|
||||
Types: append(messageEvents, stateEvents...),
|
||||
Limit: 50,
|
||||
Types: append(messageEvents, stateEvents...),
|
||||
Limit: 50,
|
||||
},
|
||||
Ephemeral: mautrix.FilterPart{
|
||||
Types: []event.Type{event.EphemeralEventTyping, event.EphemeralEventReceipt},
|
||||
|
Reference in New Issue
Block a user