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

puppet event not correct #653

Closed yixiangfeng closed 1 year ago

yixiangfeng commented 1 year ago

version v0.10.2 synapse: v1.59

step:

  1. input command in bot login
  2. scan qr code
  3. after scan qr code input command login-matrix <access-token>
  4. portals keep creating and joining.
  5. click room see the room message

web using app.element

---------------Tody---------------
user1
hello
--------------Mon, Oct 3, 2022-----------------
+85212345678 (WA)
Hi all, 

the user1 message is send in my device and the send time is before Mon, Oct 3, 2022 but this event origin_server_ts: 1695893327191

this behavior is correct or wrong i expect the hello event origin_server_tsis same with whatsapp send time

tulir commented 1 year ago

That's expected unless you modify synapse to allow your user to set timestamps, or use the new appservice method for double puppeting: https://docs.mau.fi/bridges/general/double-puppeting.html#appservice-method-new

(also, synapse 1.59 is extremely outdated)

yixiangfeng commented 1 year ago

@tulir what the meaning of modify synapse to allow your user to set timestamps? in the synapse config.yaml ? have any related documentation?