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

[Unencrypted] Invited person does not see messages #17155

Open
MichalNemec opened this issue May 5, 2024 · 2 comments
Open

[Unencrypted] Invited person does not see messages #17155

MichalNemec opened this issue May 5, 2024 · 2 comments

Comments

@MichalNemec
Copy link

MichalNemec commented May 5, 2024

Description

I need to see messages before accepting the conversation to prevent spam.
I also asked on matrix channel twice, no reply.

Steps to reproduce

I used element app:

  1. created a room
  2. made the room public
  3. "You made future room history visible to anyone."
  4. "You changed the room name to PUBLIC"
  5. "You changed the topic to "?"
  6. "You invited [testing user]"
  7. sent "hello" message
  8. see empty screen, no messages.

Homeserver

self-hosted

Synapse Version

v1.105.0

Installation Method

Docker (matrixdotorg/synapse)

Database

Postgres

Workers

Single process

Platform

Ubuntu

Configuration

Relevant log output

-

Anything else that would be useful to know?

I am using matrix-dart-sdk in flutter app, but even element app is not working properly on this usecase.

When someone messages me (unencrypted), then i need to see messages before accepting conversation, Because there is no way of knowing if its spam or not. Going the other way to check message etc before sending it is not efficient.
related issue on matrix-dart-sdk famedly/matrix-dart-sdk#1756

@reivilibre
Copy link
Contributor

I think Element intentionally doesn't want to show room history in invites to prevent abuse. If in doubt you'd need to ask them though.

If you are writing your own app, then for public, world-readable rooms that your server is already joined to, it should be possible to request history from the room even though you haven't joined it. (you might need to make the room guest-accessible, I'm not sure).

See this section of the spec: 'Room Previews' https://spec.matrix.org/v1.10/client-server-api/#room-previews

Otherwise as far as I know this is not currently possible; invited members don't receive any rights to see room history, just a small amount of room state. You'd need to search for or make a spec change proposal to change this (see https://github.com/matrix-org/matrix-spec-proposals/).

Unless I got the wrong end of the stick I think this answers your issue

@MichalNemec
Copy link
Author

So to have exactly the same behavior like for example instagram, what someone messages me and i see the messages before accepting is impossible then, got it.

This example what i shown above is to just show that its not working properly from my pov.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants