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 94ede52 commit 747a129
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 @@ -226,7 +226,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.qq.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 @@ -26,7 +26,7 @@ func main() {
Name: "matrix-qq",
URL: "https://github.com/duo/matrix-qq",
Description: "A Matrix-QQ puppeting bridge.",
Version: "0.1.10",
Version: "0.1.11",
ProtocolName: "QQ",

CryptoPickleKey: "github.com/duo/matrix-qq",
Expand Down

0 comments on commit 747a129

Please sign in to comment.