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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 10 deletions

View File

@ -6652,7 +6652,7 @@
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = "0.0.5-november23";
version = "0.0.6-november23";
};
};
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {

View File

@ -130,8 +130,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
"state" : {
"revision" : "415201caf63d5338c6007d4ed61978011a95bcb1",
"version" : "0.0.5-november23"
"revision" : "42274cc2414e675b246432b037e7fa82b587fd97",
"version" : "0.0.6-november23"
}
},
{

View File

@ -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

View File

@ -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,

View File

@ -45,7 +45,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/matrix-org/matrix-rust-components-swift
exactVersion: 0.0.5-november23
exactVersion: 0.0.6-november23
# path: ../matrix-rust-sdk
Compound:
url: https://github.com/vector-im/compound-ios