Timestamp is not consistent #28

Open
opened 2021-07-31 03:32:04 -04:00 by lecris · 8 comments
Contributor

During the sync process, when sending messages by puppetting the user, the timestamp are for the time of sync rather then the time of the event. I did not check to see if it's from Chrome or python, but I suspect it's the latter. I tried to traceback something like https://src.miscworks.net/fair/matrix-puppeteer-line/src/branch/master/matrix_puppeteer_line/portal.py#L315 , but I couldn't found a mention of timestamp down the line, however the line user's messages are stamped correctly so it shouldn't be it.

During the sync process, when sending messages by puppetting the user, the timestamp are for the time of sync rather then the time of the event. I did not check to see if it's from `Chrome` or `python`, but I suspect it's the latter. I tried to traceback something like https://src.miscworks.net/fair/matrix-puppeteer-line/src/branch/master/matrix_puppeteer_line/portal.py#L315 , but I couldn't found a mention of `timestamp` down the line, however the line user's messages are stamped correctly so it shouldn't be it.
Author
Contributor

Oh this also happens when editting a message from previously belonging to the bot from the notifications. Or at least the ordering of the messages when editted there.

Oh this also happens when editting a message from previously belonging to the bot from the notifications. Or at least the ordering of the messages when editted there.
lecris changed title from Own user's timestamp not respected at sync to Timestamp is not consistent 2021-07-31 06:24:47 -04:00
Owner

This might be a limitation in mautrix-python, as the same timestamp detail is given to both messages sent by yourself or someone else.

I'll try updating it soon to see if it fixes this. It's worth updating anyways, too.

This might be a limitation in `mautrix-python`, as the same timestamp detail is given to both messages sent by yourself or someone else. I'll try updating it soon to see if it fixes this. It's worth updating anyways, too.
Author
Contributor

Yeah it is curious why it seems to go through correctly for one, but not the other. I will have to setup a remote PyCharm environment to add breakpoints confirm what exactly is going on for each case. If I can finish my thesis in the next week or the following, I can help debug some of these issues.

Yeah it is curious why it seems to go through correctly for one, but not the other. I will have to setup a remote PyCharm environment to add breakpoints confirm what exactly is going on for each case. If I can finish my thesis in the next week or the following, I can help debug some of these issues.
Owner

The help is much appreciated--but please don't let this get in the way of your thesis :)

The help is much appreciated--but please don't let this get in the way of your thesis :)

any updates about this issue?

any updates about this issue?
Author
Contributor

Oh god, 11 months and I am still working on the thesis ><. @yuessir, did you encounter this issue with the recent versions of mautrix-python? @fair the python code-base for line and kakao are not similar right?

Oh god, 11 months and I am still working on the thesis ><. @yuessir, did you encounter this issue with the recent versions of `mautrix-python`? @fair the python code-base for line and kakao are not similar right?

yeahh..i faced the problm the timestamp are for the time of sync rather then the time of the event
i have installed the latest mautrix framework,but in vain.

$ pip show mautrix
Name: mautrix
Version: 0.16.7
Summary: A Python 3 asyncio Matrix framework.
Home-page: https://github.com/mautrix/python

also,i found another problem that the time format in the group chat was 12H ,by contrast, personal chat's time format was 24H. I added the 1d7e098853 to enhance the time converting.

yeahh..i faced the problm `the timestamp are for the time of sync rather then the time of the event` i have installed the latest mautrix framework,but in vain. > $ pip show mautrix > Name: mautrix > Version: 0.16.7 > Summary: A Python 3 asyncio Matrix framework. > Home-page: https://github.com/mautrix/python > also,i found another problem that the time format in the group chat was 12H ,by contrast, personal chat's time format was 24H. I added the https://src.miscworks.net/yuessir/matrix-puppeteer-line/commit/1d7e098853c02e6337209b90ade466f2798f1e63 to enhance the time converting.
Author
Contributor

Beginning to remember this issue a bit. I think that I wanted to check if we can set a specific time-stamp in the mautrix api. You should be able to check that via pycharm. But in matrix in general, iirc, the order of events and order of timestamps is allowed to be missmatched. Maybe another option is to queue the messages and process it. I can't remember the code-base if that's already coded for and there's a different issue here.

Beginning to remember this issue a bit. I think that I wanted to check if we can set a specific time-stamp in the mautrix api. You should be able to check that via pycharm. But in matrix in general, iirc, the order of events and order of timestamps is allowed to be missmatched. Maybe another option is to queue the messages and process it. I can't remember the code-base if that's already coded for and there's a different issue here.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fair/matrix-puppeteer-line#28
No description provided.