Make room names non-optional#1567
Conversation
| 'alluserids' => $room->getParticipantUserIds(), | ||
| 'properties' => [ | ||
| 'name' => $room->getName(), | ||
| 'name' => $room->getDisplayName(''), |
There was a problem hiding this comment.
@fancycode what do you use the name for?
Because it will be "UserA, UserB" for one-to-one rooms now, because the same message is used for both participants and I can not send different messages?
9524545 to
e4c8731
Compare
|
Na, a rebase should be enough, let me do that. |
07e6cf0 to
b6bd023
Compare
|
And pushed a fix to add names to all the integration rooms |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
because mobile apps and web use it to get the avatar Signed-off-by: Joas Schilling <coding@schilljs.com>
7f276b1 to
2af378f
Compare
|
Rebased to fix the conflict in UserMentionsTest |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Now there is no longer a "New group conversation" item shown in the conversation list dropdown; instead first the desired conversation name needs to be typed in the search input and then the group conversation with that name is selected in the dropdown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
d4f445a to
ddae520
Compare
Although the server will refuse to set an empty room name "validate" was implemented in "Room" model, which prevents "Room.save" from even sending the empty name to the server. The EditableTextLabel now checks too if an "invalid" event was triggered when calling "Model.save", and if that happens it simply hides the input showing again the label without changes; it would be better to keep the input and show the error message instead, but for now it is good enough. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
|
I have squashed the fixes for the unit and acceptance tests. Besides that, I added a commit to prevent saving an empty name for a room. |
danxuliu
left a comment
There was a problem hiding this comment.
Tested and works; empty names in existing rooms are nicely converted to the list of users 👍
I think that the UX to create a new group or public room needs further work, but we can do that later.
Should work fine with Internal signaling already.