Title: Timestamp massaging in send_state_event · Issue #151 · mautrix/python · GitHub
Open Graph Title: Timestamp massaging in send_state_event · Issue #151 · mautrix/python
X Title: Timestamp massaging in send_state_event · Issue #151 · mautrix/python
Description: Some client API (application service) methods do not seem to have a way of doing timestamp massaging from within Mautrix methods. Some methods like send_text, react and send_image do accept an undocumented timestamp parameter, but other ...
Open Graph Description: Some client API (application service) methods do not seem to have a way of doing timestamp massaging from within Mautrix methods. Some methods like send_text, react and send_image do accept an undo...
X Description: Some client API (application service) methods do not seem to have a way of doing timestamp massaging from within Mautrix methods. Some methods like send_text, react and send_image do accept an undo...
Opengraph URL: https://github.com/mautrix/python/issues/151
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Timestamp massaging in send_state_event","articleBody":"Some client API (application service) methods do not seem to have a way of doing timestamp massaging from within Mautrix methods.\r\n\r\nSome methods like `send_text`, `react` and `send_image` do accept an undocumented `timestamp` parameter, but other methods like `ensure_joined`, `invite_user`, `join_room`, `pin_message`, etc do not have this.\r\n\r\nThis would be useful to write an application service that lets you import messages from another platform to Matrix, including room join and message pin events (instead of inviting and joining all ghost users prior to bridging messages).\r\n\r\n---\r\n\r\nUpdate: I see that only the methods to send message events and state events in the Matrix API itself let you change the timestamp, so for a join I'd need to manually send a state event. I can probably do that if it's more of a Matrix limitation then.\r\n\r\n---\r\n\r\nIt would be nice for other methods that ultimately result in a state event (even if only in the homeserver backend) to accept the `timestamp` parameter as well, and manually send state events if it is specified. But first, `timestamp` needs to be supported in `send_state_event`.","author":{"url":"https://github.com/gabrc52","@type":"Person","name":"gabrc52"},"datePublished":"2023-06-11T01:36:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/151/python/issues/151"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a345978-3484-2feb-1917-73d9c7e3d5cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E050:2B5D8C:7DCFF2:A1FC3D:69744E19 |
| html-safe-nonce | e7c73ccc9f071b62d90ffff58b442a2cbd974a4f8c5b0bd4821c3af884b80ba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDUwOjJCNUQ4Qzo3RENGRjI6QTFGQzNEOjY5NzQ0RTE5IiwidmlzaXRvcl9pZCI6IjkyODI1OTAxNTc3MDMxMTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d35965599a8c92bd70e0d4d941d9598c0a8f5b7de1931f9c2fd7285ac1c65347 |
| hovercard-subject-tag | issue:1751191185 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mautrix/python/151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4a4e2b18b2e8ff8fdc27786c225f684bfbae20d8f90f311a4019c9ad72f2ac2/mautrix/python/issues/151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4a4e2b18b2e8ff8fdc27786c225f684bfbae20d8f90f311a4019c9ad72f2ac2/mautrix/python/issues/151 |
| og:image:alt | Some client API (application service) methods do not seem to have a way of doing timestamp massaging from within Mautrix methods. Some methods like send_text, react and send_image do accept an undo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gabrc52 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/mautrix/python git https://github.com/mautrix/python.git |
| octolytics-dimension-user_id | 88519669 |
| octolytics-dimension-user_login | mautrix |
| octolytics-dimension-repository_id | 124447503 |
| octolytics-dimension-repository_nwo | mautrix/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 124447503 |
| octolytics-dimension-repository_network_root_nwo | mautrix/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width