Merge pull request #4005 from element-hq/feature/fga/requests_to_join_banner
feat(knock) : Knock Requests Banner UI
This commit is contained in:
commit
9dac27a165
42 changed files with 581 additions and 47 deletions
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
* Please see LICENSE in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.libraries.core.extensions
|
||||
|
||||
/**
|
||||
* Returns the first element if the list contains exactly one element, otherwise returns null.
|
||||
*/
|
||||
inline fun <reified T> List<T>.firstIfSingle(): T? {
|
||||
return if (size == 1) first() else null
|
||||
}
|
||||
|
|
@ -56,4 +56,5 @@ enum class AvatarSize(val dp: Dp) {
|
|||
Suggestion(32.dp),
|
||||
|
||||
KnockRequestItem(52.dp),
|
||||
KnockRequestBanner(32.dp),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -322,18 +322,10 @@ Reason: %1$s."</string>
|
|||
<string name="screen_resolve_send_failure_you_unsigned_device_title">"Your message was not sent because you have not verified one or more of your devices"</string>
|
||||
<string name="screen_room_error_failed_processing_media">"Failed processing media to upload, please try again."</string>
|
||||
<string name="screen_room_error_failed_retrieving_user_details">"Could not retrieve user details"</string>
|
||||
<plurals name="screen_room_multiple_knock_requests_title">
|
||||
<item quantity="one">"%1$s +%2$d other want to join this room"</item>
|
||||
<item quantity="other">"%1$s +%2$d others want to join this room"</item>
|
||||
</plurals>
|
||||
<string name="screen_room_multiple_knock_requests_view_all_button_title">"View all"</string>
|
||||
<string name="screen_room_pinned_banner_indicator">"%1$s of %2$s"</string>
|
||||
<string name="screen_room_pinned_banner_indicator_description">"%1$s Pinned messages"</string>
|
||||
<string name="screen_room_pinned_banner_loading_description">"Loading message…"</string>
|
||||
<string name="screen_room_pinned_banner_view_all_button_title">"View All"</string>
|
||||
<string name="screen_room_single_knock_request_accept_button_title">"Accept"</string>
|
||||
<string name="screen_room_single_knock_request_title">"%1$s wants to join this room"</string>
|
||||
<string name="screen_room_single_knock_request_view_button_title">"View"</string>
|
||||
<string name="screen_room_title">"Chat"</string>
|
||||
<string name="screen_roomlist_knock_event_sent_description">"Request to join sent"</string>
|
||||
<string name="screen_share_location_title">"Share location"</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue