Skip to content

Commit

Permalink
Handle history archive magnetlink messages
Browse files Browse the repository at this point in the history
This introduces the ability for status notes to handle community
history archive magnetlinks. To make this work, a few things are needed:

1. A new database table has been introduced to store message archive
   hashes. This is necessary so status nodes can determine whether or
   not they need to download a certain archive
2. The messenger's `handleRetrievedMessages()` has been exteded to take
   magnetlink messages into account
3. New APIs were added to download torrent data given a magnetlink and
   also to extract messages from downloaded archives, which are then
   later fed to `handleRetrievedMessages`

Closes #2568
  • Loading branch information
0x-r4bbit committed Mar 22, 2022
1 parent b10fe61 commit 7e39963
Show file tree
Hide file tree
Showing 11 changed files with 357 additions and 48 deletions.
46 changes: 35 additions & 11 deletions appdatabase/migrations/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE community_message_archive_hashes (
community_id TEXT NOT NULL,
hash TEXT PRIMARY KEY NOT NULL
);

Loading

0 comments on commit 7e39963

Please sign in to comment.