mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Knock Requests banner display logic (#3550)
* added the join rule to the info * update SDK and added logic to display the banner in the room screen * added the logic to display the banner
This commit is contained in:
@@ -59,7 +59,8 @@ extension RoomInfo {
|
||||
numUnreadMessages: 0,
|
||||
numUnreadNotifications: 0,
|
||||
numUnreadMentions: 0,
|
||||
pinnedEventIds: [])
|
||||
pinnedEventIds: [],
|
||||
joinRule: .invite)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ struct JoinedRoomProxyMockConfiguration {
|
||||
var canUserPin = true
|
||||
|
||||
var shouldUseAutoUpdatingTimeline = false
|
||||
var joinRule: JoinRule?
|
||||
}
|
||||
|
||||
extension JoinedRoomProxyMock {
|
||||
@@ -166,6 +167,7 @@ extension RoomInfo {
|
||||
numUnreadMessages: 0,
|
||||
numUnreadNotifications: 0,
|
||||
numUnreadMentions: 0,
|
||||
pinnedEventIds: Array(configuration.pinnedEventIDs))
|
||||
pinnedEventIds: Array(configuration.pinnedEventIDs),
|
||||
joinRule: configuration.joinRule)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ extension RoomInfo {
|
||||
numUnreadMessages: 0,
|
||||
numUnreadNotifications: 0,
|
||||
numUnreadMentions: 0,
|
||||
pinnedEventIds: [])
|
||||
pinnedEventIds: [],
|
||||
joinRule: .knock)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user