Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messages are not delivered if the sender's device time is set manually. #17739

Open
VolodLytvynenko opened this issue Oct 26, 2023 · 7 comments · May be fixed by status-im/status-go#6358 or #22178
Open

Comments

@VolodLytvynenko
Copy link
Contributor

Preconditions:

  • User A goes to settings and manually sets a different time (for example, sets the time -1 hour from their local time).

Steps:

  1. User A sends a CR to User B. ( now User B sees the timestamp of User A's CR in the AC based on User A's manually set time.
  2. User B accept CR
  3. User A sends a message to User B

Actual result:

  • The receiver User B does not receive messages from the sender User A when the sender's device time is set manually.
  • The receiver sees the sender's data in the AC with a timestamp based on the sender's manually set time.
    image

Expected result:

Messages should be delivered regardless of the sender's manually set device time.

@ilmotta
Copy link
Contributor

ilmotta commented Oct 8, 2024

@VolodLytvynenko, you basically simulated the scenario of a User A being a different timezone with a 1h difference. I wonder if after 1h passed after the CR was accepted if messages would be delivered to User B.

@VolodLytvynenko
Copy link
Contributor Author

@VolodLytvynenko, you basically simulated the scenario of a User A being a different timezone with a 1h difference. I wonder if after 1h passed after the CR was accepted if messages would be delivered to User B.

Hi @ilmotta no, messages of User A are not delivered at all to User B. I simulated it so:
1.User A goes to settings and manually sets a different time (for example, sets the time -5 minutes from their local time).
2. User A sends a message to User B
3. User A waits 10 minutes

Actual result:

The receiver User B does not receive messages from the sender User A at all, but User A receives messages from User B

@ilmotta
Copy link
Contributor

ilmotta commented Oct 10, 2024

Thank you for re-checking and all the steps. I'm bumping this issue in importance. I think this is the kind of bug that can drive users crazy and not come back. I set my clock manually when traveling, for example.

@Parveshdhull
Copy link
Member

Thank you, @VolodLytvynenko, for creating the issue. I can reproduce it by setting a timestamp in the past.

I am removing myself from this assignment to focus on other tasks and to allow someone with more expertise on the topic to handle the issue.

Some notes from quick testing: Related error (With Timestamp 1 hour in the past in logs):

2025-01-02T04:45:39.881Z	ERROR	common/message.go:185	failed to decode message	{"error": "couldn't decrypt using asymmetric key: ecies: invalid message"}
2025-01-02T04:45:39.881Z	DEBUG	common/filter.go:246	processing message: failed to open	{"message": "0x7c7efe09a360159c9a91d1398d23634a0d9d442ca1632ab325ccf163c455236f", "filter": "8966a48236dc14b7602dc38171a4314f533b8171a44e702e40b808a85141a669"}
2025-01-02T04:45:39.881Z	DEBUG	wakuv2/waku.go:1558	filters did not match	{"envelopeHash": "0x7c7efe09a360159c9a91d1398d23634a0d9d442ca1632ab325ccf163c455236f", "pubsubTopic": "/waku/2/rs/16/32", "contentTopic": "/waku/1/0xf97bd12f/rfc26", "timestamp": 1735788556298473368}

The "filters did not match" message belongs to the processMessage function (link to code).

@Parveshdhull Parveshdhull removed their assignment Jan 2, 2025
@churik
Copy link
Member

churik commented Jan 27, 2025

Removing this from milestone for now as no assignee so far for the issue, moving to 2.34

@churik churik modified the milestones: 2.33.0, 2.34.0 Jan 27, 2025
@churik
Copy link
Member

churik commented Jan 29, 2025

Memo: If it is not getting done in 2.34, maybe we need to remove it from milestone

@ilmotta ilmotta modified the milestones: 2.34.0, 2.33.0 Feb 11, 2025
@qfrank qfrank self-assigned this Feb 20, 2025
@qfrank
Copy link
Contributor

qfrank commented Feb 21, 2025

There's a validation function on clock, comment it out will fix this issue, let's see what the correct solution will be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment