element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.27k stars 2.02k forks source link

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

Closed dorni1234 closed 4 years ago

dorni1234 commented 7 years ago

Description

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

Steps to reproduce

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

t3chguy commented 7 years ago

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

dorni1234 commented 7 years ago

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

t3chguy commented 7 years ago

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

uhoreg commented 7 years ago

dup of #2591/#3412

t3chguy commented 7 years ago

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

lampholder commented 7 years ago

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 commented 7 years ago

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

lampholder commented 7 years ago

I was thinking something like:

image

For rooms which have encryption enabled:

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 commented 7 years ago

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

lampholder commented 7 years ago

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

Thatoo commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

Thatoo commented 5 years ago

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

turt2live commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

This could be probably linked to @poljar's local E2EE search stuff: https://github.com/vector-im/riot-web/pull/11125

jryans commented 4 years ago

This is not actually fixed yet, we still need the Riot integration from https://github.com/matrix-org/matrix-react-sdk/pull/3858.