diff --git a/portal.go b/portal.go index 9999b83..17f221b 100644 --- a/portal.go +++ b/portal.go @@ -19,7 +19,6 @@ package main import ( "bytes" "context" - "encoding/gob" "encoding/json" "errors" "fmt" @@ -694,10 +693,6 @@ func (portal *Portal) isRecentlyHandled(id types.MessageID, error database.Messa return false } -func init() { - gob.Register(&waProto.Message{}) -} - func (portal *Portal) markHandled(msg *database.Message, info *types.MessageInfo, mxid id.EventID, isSent, recent bool, error database.MessageErrorType) *database.Message { if msg == nil { msg = portal.bridge.DB.Message.New()