all: change import path to go.mau.fi/mautrix-whatsapp

This commit is contained in:
Tulir Asokan 2024-10-15 17:59:57 +03:00
parent 85b1912650
commit c5fb9c9f12
28 changed files with 36 additions and 36 deletions

View file

@ -14,7 +14,7 @@ repos:
- id: go-imports-repo
args:
- "-local"
- "maunium.net/go/mautrix-whatsapp"
- "go.mau.fi/mautrix-whatsapp"
- "-w"
- id: go-vet-repo-mod
- id: go-staticcheck-repo-mod

View file

@ -18,8 +18,8 @@ import (
"maunium.net/go/mautrix/bridgev2/matrix"
"maunium.net/go/mautrix/id"
"maunium.net/go/mautrix-whatsapp/pkg/connector"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/connector"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
var upgrader = websocket.Upgrader{

View file

@ -6,8 +6,8 @@ import (
"maunium.net/go/mautrix/bridgev2/bridgeconfig"
"maunium.net/go/mautrix/bridgev2/matrix/mxmain"
"maunium.net/go/mautrix-whatsapp/pkg/connector"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb/upgrades"
"go.mau.fi/mautrix-whatsapp/pkg/connector"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb/upgrades"
)
// Information to find out exactly which commit the bridge was built from.

2
go.mod
View file

@ -1,4 +1,4 @@
module maunium.net/go/mautrix-whatsapp
module go.mau.fi/mautrix-whatsapp
go 1.22.0

View file

@ -21,8 +21,8 @@ import (
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix/bridgev2/simplevent"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
var _ bridgev2.BackfillingNetworkAPI = (*WhatsAppClient)(nil)

View file

@ -17,8 +17,8 @@ import (
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppClient) GetChatInfo(ctx context.Context, portal *bridgev2.Portal) (*bridgev2.ChatInfo, error) {

View file

@ -34,7 +34,7 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppConnector) LoadUserLogin(_ context.Context, login *bridgev2.UserLogin) error {

View file

@ -19,7 +19,7 @@ package connector
import (
"maunium.net/go/mautrix/bridgev2/commands"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
var (

View file

@ -10,7 +10,7 @@ import (
"gopkg.in/yaml.v3"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/msgconv"
"go.mau.fi/mautrix-whatsapp/pkg/msgconv"
)
type MediaRequestMethod string

View file

@ -31,8 +31,8 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/commands"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb"
"maunium.net/go/mautrix-whatsapp/pkg/msgconv"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb"
"go.mau.fi/mautrix-whatsapp/pkg/msgconv"
)
type WhatsAppConnector struct {

View file

@ -3,7 +3,7 @@ package connector
import (
"maunium.net/go/mautrix/bridgev2/database"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppConnector) GetDBMetaTypes() database.MetaTypes {

View file

@ -34,8 +34,8 @@ import (
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix-whatsapp/pkg/msgconv"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/msgconv"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppClient) getPortalKeyByMessageSource(ms types.MessageSource) networkid.PortalKey {

View file

@ -15,7 +15,7 @@ import (
"maunium.net/go/mautrix/bridgev2/database"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
var (

View file

@ -33,7 +33,7 @@ import (
"maunium.net/go/mautrix/bridgev2/simplevent"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
const (

View file

@ -7,7 +7,7 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppClient) makeWAPortalKey(chatJID types.JID) networkid.PortalKey {

View file

@ -16,7 +16,7 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/database"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
const (

View file

@ -25,9 +25,9 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb"
"maunium.net/go/mautrix-whatsapp/pkg/msgconv"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb"
"go.mau.fi/mautrix-whatsapp/pkg/msgconv"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func isFailedMedia(converted *bridgev2.ConvertedMessage) bool {

View file

@ -28,7 +28,7 @@ import (
"maunium.net/go/mautrix/bridge/status"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (wa *WhatsAppClient) disconnectWarningLoop(ctx context.Context) {

View file

@ -10,7 +10,7 @@ import (
"maunium.net/go/mautrix"
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
var (

View file

@ -17,7 +17,7 @@ import (
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix/bridgev2/simplevent"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
const resyncMinInterval = 7 * 24 * time.Hour

View file

@ -5,7 +5,7 @@ import (
"go.mau.fi/util/dbutil"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb/upgrades"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb/upgrades"
)
type Database struct {

View file

@ -44,7 +44,7 @@ import (
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix/id"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (mc *MessageConverter) generateContextInfo(replyTo *database.Message, portal *bridgev2.Portal) (*waE2E.ContextInfo, error) {

View file

@ -37,7 +37,7 @@ import (
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/id"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
type contextKey int

View file

@ -35,7 +35,7 @@ import (
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (mc *MessageConverter) msc1767ToWhatsApp(ctx context.Context, msg event.MSC1767Message, allowedMentions *event.Mentions) (string, []string) {

View file

@ -20,7 +20,7 @@ import (
"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix-whatsapp/pkg/connector/wadb"
"go.mau.fi/mautrix-whatsapp/pkg/connector/wadb"
)
type AnimatedStickerConfig struct {

View file

@ -41,7 +41,7 @@ import (
"maunium.net/go/mautrix/bridgev2/database"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (mc *MessageConverter) convertMediaMessage(

View file

@ -35,7 +35,7 @@ import (
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (mc *MessageConverter) convertUnknownMessage(ctx context.Context, msg *waE2E.Message) (*bridgev2.ConvertedMessagePart, *waE2E.ContextInfo) {

View file

@ -33,7 +33,7 @@ import (
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix-whatsapp/pkg/waid"
"go.mau.fi/mautrix-whatsapp/pkg/waid"
)
func (mc *MessageConverter) convertPollCreationMessage(ctx context.Context, msg *waE2E.PollCreationMessage) (*bridgev2.ConvertedMessagePart, *waE2E.ContextInfo) {