★ wanayoo — archive 1999 https://github.com/RocketChat/Rocket.Chat.iOS/issues/2540Nouvelle recherche | Portail wanayoo
Skip to content
This repository has been archived by the owner. It is now read-only.

[NEW] Avatars aren't loaded if unauthenticated access to avatars is disabled. #2540

Closed
davidlougheed opened this issue Feb 7, 2019 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@davidlougheed
Copy link

@davidlougheed davidlougheed commented Feb 7, 2019

  • Your Rocket.Chat app version: 3.3.0
  • Your Rocket.Chat server version: 0.74.0
  • Device (or Simulator) you're running with: iPhone 8

The server provides a setting to disable unauthenticated access to avatars. If this is enabled, avatars are not loaded by the iOS app (see RocketChat/Rocket.Chat.ReactNative#603 and RocketChat/Rocket.Chat.Android#1749 )

I'm working on a fix for the React Native client (see RocketChat/Rocket.Chat.ReactNative#604 ) but it would be nice to see the same fixes in the other apps.

To fix this, pass rc_token and rc_uid as URL params when fetching the avatar via URL.

@rafaelks rafaelks added this to the 3.4.0 milestone Feb 7, 2019
@rafaelks rafaelks added this to To-do in Cycle 14: 02/05 ~ 03/05 via automation Feb 7, 2019
@rafaelks rafaelks self-assigned this Feb 12, 2019
@rafaelks rafaelks changed the title Avatars aren't loaded if unauthenticated access to avatars is disabled. [NEW] Avatars aren't loaded if unauthenticated access to avatars is disabled. Feb 12, 2019
@davidlougheed
Copy link
Author

@davidlougheed davidlougheed commented Mar 29, 2019

@rafaelks this works for users but not channel icons (same problem, same endpoint as far as I know) in the latest dev build, so it's not fully fixed

@rafaelks
Copy link
Contributor

@rafaelks rafaelks commented Mar 29, 2019

@davidlougheed True, it needs to be fixed for channels as well 👍

@rafaelks
Copy link
Contributor

@rafaelks rafaelks commented Mar 29, 2019

@davidlougheed Fixed here: #2620

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.