Skip to content

Shares in federated conversation broken for public conversations #18650

Description

@SystemKeeper

Tip

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Instance A: Have a conversation that is public (!)
  2. Instance A: Post a picture
  3. Instance A: Invite participant from instance B
  4. Instance B: Accept invite and open conversation

Expected behaviour

Image

Actual behaviour

Image

From what I can see it's a regression from conversation folders, namely bb1a36d.

if (isset($parameters['share'])) {
$parsedParameters['file'] = $this->getFileFromShare($room, $participant, $parameters['share'], $allowInaccurate);
} elseif (isset($parameters['fileId'])) {
$parsedParameters['file'] = $this->getFileFromNodeId($room, $participant, (int)$parameters['fileId'], $allowInaccurate);
} else {
throw new \InvalidArgumentException('No share or fileId in file_shared message');
}

Since this is not throwing anymore, we don't end up at

} elseif ($currentActorType === Attendee::ACTOR_FEDERATED_USERS) {
$parsedMessage = $this->l->t('File shares are currently not supported in federated conversations');
}

Talk app

Talk app version: Tested stable34 -> main

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions