-
Notifications
You must be signed in to change notification settings - Fork 441
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
feat(conversations): add backend support of compact list #13994
base: main
Are you sure you want to change the base?
Conversation
c335ce4
to
54c7c21
Compare
lib/Capabilities.php
Outdated
@@ -229,6 +230,7 @@ public function getCapabilities(): array { | |||
'conversations' => [ | |||
'can-create' => $user instanceof IUser && !$this->talkConfig->isNotAllowedToCreateConversations($user), | |||
'force-passwords' => $this->talkConfig->isPasswordEnforced(), | |||
'compact-list' => $this->talkConfig->getConversationsListStyle($user?->getUID()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered if a bool is the best option for now, or if we use "string" config already:
'compact-list' => $this->talkConfig->getConversationsListStyle($user?->getUID()), | |
'list-style' => $this->talkConfig->getConversationsListStyle($user?->getUID()), |
And basically return the strings:
two-lines
compact
for now and then we could have other list styles in the future more easily?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If boolean is already passed as 'yes' or 'no', then I don't see a reason to not do it as you suggesting from the beginning
- int<0,1> was chosen if we further want to extend with other appearance types Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
54c7c21
to
cd1caae
Compare
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏡 After
🚧 Tasks
🏁 Checklist
🛠️ API Checklist
🚧 Tasks
🏁 Checklist
docs/
has been updated or is not required