whatsapp icon indicating copy to clipboard operation
whatsapp copied to clipboard

Presence WhatsApp -> Matrix

Open Tiebe opened this issue 3 years ago • 5 comments

I saw this was on the roadmap, and wanted to discuss if (and how) this will be possible, and when it will be done. I feel like this is one of the more crucial features for most users.

Tiebe avatar Jun 22 '22 10:06 Tiebe

Any updates? It seems it's been on the roadmap for years.

The underlying API does provide option for receiving presence updates: https://pkg.go.dev/go.mau.fi/whatsmeow#Client.SubscribePresence

The issue is that you likely don't want to subscribe to the presence of every user known to mautrix. Perhaps it's enough if we just listen to presence updates of users that you've created a private room with on matrix?

Opisek avatar Aug 17 '24 09:08 Opisek

There are more intricacies. Privacy tokens, etc.

Not even sure if whatsmeow has presence support in the first place (to an adequate level)

purpshell avatar Aug 17 '24 12:08 purpshell

Any updates? It seems it's been on the roadmap for years.

The underlying API does provide option for receiving presence updates: https://pkg.go.dev/go.mau.fi/whatsmeow#Client.SubscribePresence

The issue is that you likely don't want to subscribe to the presence of every user known to mautrix. Perhaps it's enough if we just listen to presence updates of users that you've created a private room with on matrix?

@tulir this function does not take a tcToken?

EDIT: NVM

https://github.com/tulir/whatsmeow/blob/66c6524b93ade1691302d4a1da0d66eaba36daa6/presence.go#L109

purpshell avatar Aug 17 '24 12:08 purpshell

There are no plans for presence bridging currently

tulir avatar Aug 17 '24 13:08 tulir

In brief, what is the issue with privacy tokens? I would lilke to research potential solutions.

Opisek avatar Aug 18 '24 07:08 Opisek