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:
Alfonso Grillo
2023-11-23 17:26:44 +01:00
committed by GitHub
parent e583f52c65
commit 058429b637
5 changed files with 5 additions and 10 deletions
@@ -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,