Do not show room names when the user is not part of it#1496
Conversation
|
/backport to stable15 |
|
/backport to stable14 |
Signed-off-by: Joas Schilling <coding@schilljs.com>
b05fed6 to
8949585
Compare
|
Functional tests pass locally, merging |
|
backport to stable15 in #1497 |
|
The backport to stable14 failed. Please do this backport manually. |
| } | ||
| } | ||
| } else if ($roomName === '') { | ||
| $roomName = $this->l->t('Unnamed conversation'); |
There was a problem hiding this comment.
When the room has no name I would either return the list of participants (which would be consistent with how unnamed rooms are shown in the main Talk UI) or an empty string so clients can decide the best way to show the lack of name.
For example, in the share tab of the Files app, when a file is shared with a user in a room with no name now it shows Shared with you and the conversation Unnamed conversation by user0; before it showed Shared with you in a conversation by user0, which in my opinion is better.
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah, but before that, the list of (re-)shares listed it as (conversation) with an empty avatar. Certainly a worse option.
I agree, but that was a bug in the Sharing tab, not in Talk itself.
Anyway, I don't think neither is too important and in the future we should prevent empty room names, as they just cause too much weird behaviour
OK.

Follow up to #1426
Views:
Shares: