Fall back to room-less file URL format when parsing open group download URLs#94
Conversation
jagerman
left a comment
There was a problem hiding this comment.
The code seems fine, but I'm a little bit confused how this can actually work: do clients have to throw away most of the URL but keep the ID and then reconstruct the URL to actually download a file? As far as I know, sogs always requires the /room/NAME/file/N URL to get a room attachment.
|
Yep pretty much, below are the Android and Desktop versions - they grab the last part of the url to get the In the last major iOS release before we shut down I updated iOS to use This change is to add support for the incorrect URL (so a future universal client is able to download images sent by the broken Android versions), and an update to iOS which has a similar fallback to extract the last part of the url if libSession fails to parse it. Android: Desktop: |
No description provided.