Skip to content

Commit

Permalink
Fix auto accept issue for invite events
Browse files Browse the repository at this point in the history
  • Loading branch information
duo committed Feb 14, 2024
1 parent a12049c commit 57ebd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 57ebd91

Please sign in to comment.