Timestamp massaging in send_state_event

Đang mở
#151 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu từ điểm vào send_state_event và kiểm tra cách các sự kiện trạng thái hiện được gửi. So sánh API của nó với các phương thức message và state event hỗ trợ timestamp được mô tả trong issue, sau đó theo dõi use case của application service. Hoàn tất khi hành vi timestamp được yêu cầu được hỗ trợ cho send_state_event mà không làm hỏng các caller hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 methods like ensure_joined, invite_user, join_room, pin_message, etc do not have this.

This 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).


Update: 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.


It 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.

Ngôn ngữ chính
Python
Star
249
Fork
84
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mautrix/python

Tất cả issue của mautrix/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.