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

Develop Channel.Type.MessageArchive spec #2

Open
Kaffeine opened this issue Nov 29, 2016 · 0 comments
Open

Develop Channel.Type.MessageArchive spec #2

Kaffeine opened this issue Nov 29, 2016 · 0 comments

Comments

@Kaffeine
Copy link
Member

Kaffeine commented Nov 29, 2016

A channel type for logs retrieve. Inspired by Channel.Type.RoomList. Can be used to retrieve logs without opening channels for all possible targets.

Methods

GetMessages (a{sv} filter) -> void

Acceptable filter keys listed in FilterKeys property

Signals

MessagesReceived (aaa{sv}: array of Messages)

MessageHeader part:

  • message-sender (u - Contact_Handle) The contact who sent the message. If omitted, clients MUST fall back to looking at message-sender-id.
  • message-sender-id (s) The identifier of the contact who sent the message.
  • scrollback (b) Must be presented and must be true.
  • channel-type (u - Handle_Type) Must be presented.
  • target-id (s) The identifier of the target. Must be presented.

Properties

FilterKeys — as

Possible (optional) keys:

  • with-id - s (string) Identifier of the contact.
  • with-type - (u - Handle_Type) Must be presented, if there is with-id key.
  • start-timestamp - x (Unix timestamp)
  • end-timestamp - x (Unix timestamp)
  • start-message-token - s (Protocol_Message_Token)
  • end-message-token - s (Protocol_Message_Token)
  • limit - u (uint)
  • offset - u (uint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant