feat: add message storage and fetching api #21

Merged
hippoz merged 4 commits from message-history into master 2021-10-03 21:20:29 +03:00
Owner

Implementation details:

  • A new SAVE_MESSAGES gateway connection attribute was added. If a user has this attribute set, all messages sent by them will be saved unencrypted :( in the database.

  • An endpoint to fetch messages has been added, however, it only covers the usecase of paging in the desktop app. You specifiy a channel and a field called before (get messages before this channel id)

TODOs:

  • Add a policy which allows server owners to control whether to allow saving messages
  • Add more APIs related to message storage (get specific message, delete, etc.) (superseded by issue #22)
  • Specifically label message storage as an experimental and "dangerous" feature (since the messages are not yet encrypted when stored)
Implementation details: - A new `SAVE_MESSAGES` gateway connection attribute was added. If a user has this attribute set, all messages sent by them will be saved unencrypted :( in the database. - An endpoint to fetch messages has been added, however, it only covers the usecase of paging in the desktop app. You specifiy a `channel` and a field called `before` (get messages before this channel id) TODOs: - [x] Add a policy which allows server owners to control whether to allow saving messages - [x] Add more APIs related to message storage (get specific message, delete, etc.) (superseded by issue #22) - [x] Specifically label message storage as an experimental and "dangerous" feature (since the messages are not yet encrypted when stored)
hippoz added 1 commit 2021-10-02 22:58:01 +03:00
hippoz added 2 commits 2021-10-03 21:09:04 +03:00
hippoz added 1 commit 2021-10-03 21:12:00 +03:00
hippoz changed title from draft: feat: add message storage and fetching api to feat: add message storage and fetching api 2021-10-03 21:19:06 +03:00
Author
Owner

Although not all of the TODOs in this pull request have been fulfilled, I will merge it now. All remaning TODOs will be superseded by an issue in the issue tracker.

Although not all of the TODOs in this pull request have been fulfilled, I will merge it now. All remaning TODOs will be superseded by an issue in the issue tracker.
hippoz merged commit 8984598ade into master 2021-10-03 21:20:29 +03:00
hippoz deleted branch message-history 2021-10-03 21:21:50 +03:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
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: hippoz/brainlet#21
No description provided.