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 Apr 22, 2022
1 parent d21b89c commit 9d2e6c8
Show file tree
Hide file tree
Showing 24 changed files with 1,093 additions and 5,804 deletions.
110 changes: 55 additions & 55 deletions appdatabase/migrations/bindata.go

Large diffs are not rendered by default.

This file was deleted.

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


569 changes: 329 additions & 240 deletions appdatabase/migrationsprevnodecfg/bindata.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions mailserver/migrations/bindata.go

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

20 changes: 10 additions & 10 deletions multiaccounts/migrations/bindata.go

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

6 changes: 3 additions & 3 deletions protocol/anonmetrics/migrations/migrations.go

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

Loading

0 comments on commit 9d2e6c8

Please sign in to comment.