Conversation
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
|
@americanrefugee please review the design. Particularly:
|
|
I think we're are already working on this feature for iOS. cc @Velin92 |
|
@bmarty we should coordinate to make sure the same thing is applied to Android. |
|
How has been this accomplished? To make it work cross-platform and interoperable with other clients, it needs to use a MSC like this matrix-org/matrix-spec-proposals#4274 ? Is this the intention? Also, this clearly needs support on all 3 platforms Web, iOS and Android before it can be generally released. |
SDK already supports gallery messages: |
Ok, that clarifies the technical approach. My suggestion is that if we want to move forward, we need to first confirm, if there is capacity to implement this also for Web. If Rust SDK supports it, I am guessing it may not be such a lot of effort for iOS. However, Web is not using Rust SDK, thus needs to be checked first. If all of that looks feasible then we still need to figure out the designs, but I think we're able to do that if there if there is confirmation it to be done on all 3 platforms. |
I was able to do a POC Web implementation, do I need an iOS PR too for this feature to proceed with the design? |
It is sufficient if we know that you want and can do it on iOS. Which I understand is the case, correct? @americanrefugee can you look into the designs? A couple of notes:
|
13a6420 to
bb370e0
Compare
|
I accidentally added images above for iOS. I just updated them to show Android. Sorry! |
@americanrefugee At least currently we do not render any preview for a PDF. Let's keep it the same way now. |
bb370e0 to
18e281d
Compare
|
I've implemented the designs, but can you send/tell more precise style attributes for the designs you've sent if possible? Particularly, I want to know the size of the video icon, the gradient attributes, and the timestamp position attributes.
FYI, this example is too simple as it doesn't take into account landscape/vertical mixed media grid handling. I've left the current grid compaction logic without changes, as it should already shows landscape-only galleries like in the example.
The waveform will need to be generated each time you encounter an audio file in a gallery message, which I believe can lead to big performance issues as the audio file will need to be downloaded before generating the waveform. Imagine if someone would send a 1 GB audio file, it'd take a while and might cost a lot if the user is on a metered connection. |











Content
Support sending and rendering gallery messages (a message with multiple photos)
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist