--- a/cmd/mautrix-whatsapp/main.go +++ b/cmd/mautrix-whatsapp/main.go @@ -4,6 +4,9 @@ "maunium.net/go/mautrix/bridgev2/matrix/mxmain" "go.mau.fi/mautrix-whatsapp/pkg/connector" + + "xessenger/bridgekit" + "xessenger/bridgekit/migrate" ) // Information to find out exactly which commit the bridge was built from. @@ -24,6 +27,11 @@ } func main() { + // Xessenger (QA-289): the bridge extension, services/bridgekit, with the history move (migrate). + bridgekit.Install(&m, bridgekit.Options{ + // The history sync's waiting messages, which message retention expires, and the history move. + Extensions: []bridgekit.Extension{connector.XessengerHistoryAPI, migrate.Install}, + }) m.InitVersion(Tag, Commit, BuildTime) m.Run() }