hoehermann / purple-gowhatsapp

Pidgin/libpurple plug-in for WhatsApp Web.
GNU General Public License v3.0
283 stars 35 forks source link

WhatsApp Web Version string should be user-editable #81

Closed rvdborgt closed 2 years ago

rvdborgt commented 3 years ago

Pidgin suddenly says:

"restoring failed: error decoding login connResp: json: cannot unmarshal array into Go value of type map[string]interface {}"

... and remains disabled. Googling this message finds these two 2-year-old closed issues: https://github.com/dimaskiddo/go-whatsapp-rest/issues/6 https://github.com/Rhymen/go-whatsapp/issues/170

Edit: I saw there was a new build from 13 June but that didn't fix the problem. I'm on Windows 10.

hoehermann commented 3 years ago

Confirmed. I guess, this is a problem within go-whatsapp rather than this plug-in, but I am not sure.

verm commented 3 years ago

Yes see: https://github.com/Rhymen/go-whatsapp/issues/571 It's been fixed there already.

pkar70 commented 3 years ago

Could you add to setup screen (setup of purple-gowhatsapp) EditBox, field with version number to be sent to WhatsApp server? Instead of recompiling, we can simply change this value in Setup...

hoehermann commented 3 years ago

@verm Nice to know. The nightly builds will be updated automatically.

@pkar70 I'll put this on the list of proposed enhancements.

Edit: Note to self: This can be implemented via func (wac *Conn) SetClientVersion(major int, minor int, patch int).

rvdborgt commented 3 years ago

Today's nightly build solves the issue.

twinklebob commented 3 years ago

Are there still nightly builds for ubuntu 18? I'm not seeing one for last night. I'm assuming the ubuntu 20 one probably won't work.

pkar70 commented 3 years ago

Nightly build... but what about Windows version? :)

hoehermann commented 3 years ago

@pkar70 Nightly builds for Windows are available at the build-bot. It seems quite reliable. So far, I only broke it once. :D

@twinklebob I do not know for sure. I upgraded all my systems to 20.04. golang builds use static linking and the libpurple API did not change. Feel free to give the 20.04 build a try on 18.04. Could work.

@rvdborgt Nice to know. Thank you. :)

twinklebob commented 2 years ago

This one has reared it's ugly head again, can someone do the necessary stuff and trigger a new nightly build? I forgot to update last time, but the ubuntu 20.04 version worked fine for me.

rvdborgt commented 2 years ago

Did you try the most recent nightly build, from after #93 was fixed? The Windows version works for me.

twinklebob commented 2 years ago

:facepalm: i just skimmed the list and saw loads of 0.4.1 and didn't even notice the recent date. What a numpty, and a rude one at that, because I also hadn't checked the other tickets. Ignore me, I'll go back to my day job, complaining about users leaving reports like I just left. I'm sure the update will work.

hoehermann commented 2 years ago

This is no longer relevant with the whatsmeow branch.