mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Compile error #665

Closed cyberb closed 1 year ago

cyberb commented 1 year ago
maunium.net/go/mautrix-whatsapp
whatsapp/portal.go:335:39: cannot use (*Portal)(nil) (value of type *Portal) as bridge.MembershipHandlingPortal value in variable declaration: *Portal does not implement bridge.MembershipHandlingPortal (wrong type for method HandleMatrixInvite)

        have HandleMatrixInvite(bridge.User, bridge.Ghost)

        want HandleMatrixInvite(bridge.User, bridge.Ghost, *event.Event)
tulir commented 1 year ago

Did you somehow tell the compiler to ignore dependency versions? 🤔

cyberb commented 1 year ago

Oh, sorry I was using go.work with latest code from mautrix-go lib to get my unix socket changes (as they were not referrnced by whatsapp) let me try to use the one from dependency.

I guess currently HEADs are not compatible, is it normal?

cyberb commented 1 year ago

Ok, reverting back to dependency version fixed it, sorry again.