Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Files' view in e2e-encrypted rooms does not show files #4959

Closed
dorni1234 opened this issue Sep 2, 2017 · 18 comments · Fixed by matrix-org/matrix-react-sdk#3858 or matrix-org/seshat#31
Assignees
Labels
A-E2EE A-File-Panel S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@dorni1234
Copy link

dorni1234 commented Sep 2, 2017

Description

Uploaded files are not shown in the 'Files' view when the room has e2e enabled.

Steps to reproduce

  • Enable e2e for a room, upload files, open 'Files' view.

Expected: list of uploaded files
Got: list of events when somebody changed the room image or added a widget, so only the not-encrypted events.

Log: not sent

Version information

  • Platform: Desktop, riot-web version 0.12.2
  • OS: Arch Linux, Kernel 4.12.8-1-vfio
@t3chguy
Copy link
Member

t3chguy commented Sep 2, 2017

the filtering is done server side and since the events are encrypted synapse has no waying of knowing which events are files.

@dorni1234
Copy link
Author

Thank you for the information. Makes sense if you think about it...

@t3chguy
Copy link
Member

t3chguy commented Sep 2, 2017

Doesn't mean its right though, should be locally filtered for e2e

@t3chguy t3chguy reopened this Sep 2, 2017
@uhoreg
Copy link
Member

uhoreg commented Sep 3, 2017

dup of #2591/#3412

@t3chguy
Copy link
Member

t3chguy commented Sep 3, 2017

Leaving this issue open as a meta until either is closed
(as a personal reminder)

@lampholder lampholder added T-Defect S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-E2EE A-File-Panel S-Tolerable Low/no impact on users labels Sep 5, 2017
@lampholder
Copy link
Member

So #2591 is "Explain why the file list isn't working in E2E rooms" and #3412 is "Make the file list work in E2E rooms".

Neither of those captures the 'weird other events end up in the file panel' aspect :P

#2591 seems like it should be easy - is the only thing blocking this our not having a design/wording?

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2017

@lampholder as far as I am aware, so if you whip up some wording/design I can impl that

@lampholder
Copy link
Member

I was thinking something like:

image

For rooms which have encryption enabled:

  • show all the files we can show (uploaded pre-encryption), or the 'there are no visible files' message
  • show the 'files uploaded since encryption was enabled will not be displayed in this panel' message as the last item in the files panel

It's not 100% perfect, since it doesn't do anything to explain why they won't be shown, but the full explanation doesn't really belong in the web UI. It might be nice to provide a why not? explanatory link, but I don't know if we have a precedent for that and how people hosting their own riots might feel about links to content hosted on https://about.riot.im

@t3chguy
Copy link
Member

t3chguy commented Sep 11, 2017

this is fiddly to implement due to how generic <TimelinePanel /> is

@lampholder
Copy link
Member

I was afraid that might be the case. Can you suggest something that does fit within TimelinePanel that captures the same spirit?

@Thatoo
Copy link

Thatoo commented Feb 15, 2019

Why is it working in Android version of Riot and not in Desktop version of Riot?
If Android can do it, why Gnu/linux can't?

@ghost
Copy link

ghost commented Feb 18, 2019

@Thatoo

Why is it working in Android version of Riot and not in Desktop version of Riot?

Been wondering this past 6 months as well, decided to google it now with the big release of the riot version.. Thought it was my settings for a second.

The android riot does request my server for the files as it scrolls up to view old files. So obviously it just saves the chat message IDs and requests those from my server or something?

@giomfo
Copy link
Member

giomfo commented Mar 5, 2019

@Thatoo @RRREEEEEEEE
Riot-Android and Riot-iOS list the attachments in the Files panel because they are filtering the room events locally:

@Thatoo
Copy link

Thatoo commented Mar 5, 2019

@giomfo : I assume completely if my question is naive : why Riot for desktop can't do the same?

@turt2live
Copy link
Member

It can, but it involves a bit more work. The concern at the moment isn't really a technical one, but more of a design one.

@awesome-michael
Copy link
Contributor

Any news on this? This is really annoying :/
Is there already work done? Maybe I could fix this and raise a PR. Could you give some more detail on how and where the local filtering should be done?

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2019

This could be probably linked to @poljar's local E2EE search stuff: #11125

@jryans
Copy link
Collaborator

jryans commented Jan 17, 2020

This is not actually fixed yet, we still need the Riot integration from matrix-org/matrix-react-sdk#3858.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-File-Panel S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
10 participants