mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Room mentioning in the composer (#3868)
* refactored the suggestion item structure to scale with the room pill * Implemented a way for the rooms to appear in the suggestions view for the RTE, however I need to add the pills to the composer and the compatibility with the plain text composer * small code correction * fix * fixed a bug where the suggestion wasn't returning the right suggestion type and the suggestion text properly * implementation done! also updated some tests, but we need more of them * updated toolbar view model tests * updated tests * updated preview tests * renamed the Avatars case for the suggestions
This commit is contained in:
@@ -70,7 +70,7 @@ enum UserAvatarSizeOnScreen {
|
||||
case readReceipt
|
||||
case readReceiptSheet
|
||||
case editUserDetails
|
||||
case suggestions
|
||||
case completionSuggestions
|
||||
case blockedUsers
|
||||
case knockingUsersBannerStack
|
||||
case knockingUserBanner
|
||||
@@ -89,7 +89,7 @@ enum UserAvatarSizeOnScreen {
|
||||
return 32
|
||||
case .home:
|
||||
return 32
|
||||
case .suggestions:
|
||||
case .completionSuggestions:
|
||||
return 32
|
||||
case .blockedUsers:
|
||||
return 32
|
||||
@@ -133,6 +133,7 @@ enum RoomAvatarSizeOnScreen {
|
||||
case notificationSettings
|
||||
case roomDirectorySearch
|
||||
case joinRoom
|
||||
case completionSuggestions
|
||||
|
||||
var value: CGFloat {
|
||||
switch self {
|
||||
@@ -142,6 +143,8 @@ enum RoomAvatarSizeOnScreen {
|
||||
return 32
|
||||
case .roomDirectorySearch:
|
||||
return 32
|
||||
case .completionSuggestions:
|
||||
return 32
|
||||
case .messageForwarding:
|
||||
return 36
|
||||
case .globalSearch:
|
||||
|
||||
Reference in New Issue
Block a user