From 57ebd91f1b1073040f55414af497ac54d45c2454 Mon Sep 17 00:00:00 2001 From: Duo Date: Wed, 14 Feb 2024 10:05:45 +0800 Subject: [PATCH] Fix auto accept issue for invite events --- internal/user.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/user.go b/internal/user.go index 4dd2d10..1c8ff53 100644 --- a/internal/user.go +++ b/internal/user.go @@ -192,7 +192,7 @@ func (u *User) ensureInvited(intent *appservice.IntentAPI, roomID id.RoomID, isD } customPuppet := u.bridge.GetPuppetByCustomMXID(u.MXID) if customPuppet != nil && customPuppet.CustomIntent() != nil { - extraContent["me.lxduo.wechat.will_auto_accept"] = true + extraContent["fi.mau.will_auto_accept"] = true } _, err := intent.InviteUser(roomID, &mautrix.ReqInviteUser{UserID: u.MXID}, extraContent) var httpErr mautrix.HTTPError diff --git a/main.go b/main.go index af77c16..d6ac747 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ func main() { Name: "matrix-wechat", URL: "https://github.com/duo/matrix-wechat", Description: "A Matrix-WeChat puppeting bridge.", - Version: "0.2.3", + Version: "0.2.4", ProtocolName: "Wechat", CryptoPickleKey: "github.com/duo/matrix-wechat",