Skip to content

Commit

Permalink
all: change import path to go.mau.fi/mautrix-whatsapp
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 15, 2024
1 parent 85b1912 commit c5fb9c9
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/mautrix-whatsapp/legacyprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions cmd/mautrix-whatsapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module maunium.net/go/mautrix-whatsapp
module go.mau.fi/mautrix-whatsapp

go 1.22.0

Expand Down
4 changes: 2 additions & 2 deletions pkg/connector/backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pkg/connector/chatinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/dbmeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/connector/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/handlematrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/handlewhatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions pkg/connector/mediarequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/phoneping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/startchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/userinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/wadb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/from-matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/from-whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/matrixpoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/msgconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/wa-media.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/wa-misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/msgconv/wa-poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c5fb9c9

Please sign in to comment.