mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update rust sdk to 0.0.6-november23 (#2159)
* Update rust sdk to 0.0.6-november23 * Delete unused property
This commit is contained in:
-4
@@ -41,10 +41,6 @@ struct Poll: Hashable {
|
||||
var hasEnded: Bool {
|
||||
endDate != nil
|
||||
}
|
||||
|
||||
var hasVotes: Bool {
|
||||
votes.values.contains(where: { !$0.isEmpty })
|
||||
}
|
||||
|
||||
enum Kind: Hashable {
|
||||
case disclosed
|
||||
|
||||
@@ -411,8 +411,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
|
||||
body: poll.question,
|
||||
timestamp: eventItemProxy.timestamp.formatted(date: .omitted, time: .shortened),
|
||||
isOutgoing: isOutgoing,
|
||||
// FIX ME: `eventItemProxy.isEditable` needs to be fixed on the rust side (now returns always false)
|
||||
isEditable: eventItemProxy.isOwn && !poll.hasVotes && !poll.hasEnded,
|
||||
isEditable: eventItemProxy.isEditable,
|
||||
canBeRepliedTo: eventItemProxy.canBeRepliedTo,
|
||||
sender: eventItemProxy.sender,
|
||||
properties: RoomTimelineItemProperties(isEdited: edited,
|
||||
|
||||
Reference in New Issue
Block a user