-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
884b0f6
commit f2702c2
Showing
9 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sequenceDiagram | ||
participant C as Client | ||
participant S as Server | ||
participant O as Origin | ||
C->>S: req file | ||
activate S | ||
opt fetch file | ||
S->>O: req file | ||
activate O | ||
O-->>S: serve file | ||
deactivate O | ||
end | ||
S-->>C: serve file | ||
deactivate S |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
sequenceDiagram | ||
participant C as Client | ||
participant S as Server | ||
participant R as Remote | ||
C->>S: req file with CID and hint | ||
Note over C,S: The (optional) hint is a room+event ID | ||
activate S | ||
opt fetch file from remote | ||
loop try potential remotes | ||
S->>R: req file | ||
activate R | ||
R-->>S: serve file | ||
deactivate R | ||
end | ||
end | ||
S->>S: verify the CID | ||
S-->>C: serve file | ||
deactivate S | ||
opt verify CID | ||
C->>C: verify the CID | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sequenceDiagram | ||
participant C as Client | ||
participant S as Server | ||
C->>S: upload file | ||
S-->>C: return MXC URL | ||
C->>S: send event with MXC URL | ||
S-->>C: return event ID |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sequenceDiagram | ||
participant C as Client | ||
participant S as Server | ||
C->>S: upload file | ||
activate S | ||
S->>S: calculate CID | ||
S-->>C: return MXC URL with CID | ||
deactivate S | ||
|
||
opt verify CID | ||
C->>C: verify the CID | ||
end | ||
|
||
C->>S: send event with MXC URL | ||
activate S | ||
S-->>C: event ID | ||
deactivate S |