mautrix / whatsapp

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

Cannot vote on Polls anymore #675

Closed pree closed 6 months ago

pree commented 6 months ago

When trying to vote on polls it accepts the vote in Matrix (tried with multiple different clients, they all show the vote in matrix), but it's not forwarded to Whatsapp anymore. This stopped working recently (somewhere between 2 - 4 weeks I guess).

When trying to vote I get the following error in the bridges logs:

Dec 13, 2023 18:46:49 FTL Portal message handler panicked
error="runtime error: invalid memory address or nil pointer dereference"
portal_key=xxx@s.whatsapp.net-xxx@s.whatsapp.net
stack="goroutine 149978 [running]:runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
main.(*Portal).handleOneMessageLoopItem.func1()
/builds/mautrix/whatsapp/portal.go:475 +0x5a
panic({0x1047fe0?, 0x19f0b40?})
/usr/local/go/src/runtime/panic.go:914 +0x21f
main.(*Portal).HandleMatrixMessage(0xc00011f000, 0xc003583e50?, 0xc004b98ea0, {0x7fdc3db, 0x93287a, 0x308f7a, 0x2aae2, 0x89ce293, 0x0, 0x0, ...})
/builds/mautrix/whatsapp/portal.go:4592 +0x19b8
main.(*Portal).handleMatrixMessageLoopItem(0xc00011f000, {0xc004b98ea0, 0xc0041ac380, {0xc1569962617520fb, 0x9662cb3948e9, 0x1a8a2c0}})
/builds/mautrix/whatsapp/portal.go:387 +0x4a5
main.(*Portal).handleOneMessageLoopItem(0xc00011f000)
/builds/mautrix/whatsapp/portal.go:489 +0x18e
main.(*Portal).handleMessageLoop(0xc002400120?)
/builds/mautrix/whatsapp/portal.go:467 +0x18
created by main.(*WABridge).newBlankPortal in goroutine 149975
/builds/mautrix/whatsapp/portal.go:208 +0x551"

Running mautrix-whatsapp 0.10.4 (Nov 16 2023, 21:51:31 with go1.21.1)