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
+1 -1
View File
@@ -6652,7 +6652,7 @@
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift"; repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
requirement = { requirement = {
kind = exactVersion; kind = exactVersion;
version = "0.0.5-november23"; version = "0.0.6-november23";
}; };
}; };
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = { 821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {
@@ -130,8 +130,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift", "location" : "https://github.com/matrix-org/matrix-rust-components-swift",
"state" : { "state" : {
"revision" : "415201caf63d5338c6007d4ed61978011a95bcb1", "revision" : "42274cc2414e675b246432b037e7fa82b587fd97",
"version" : "0.0.5-november23" "version" : "0.0.6-november23"
} }
}, },
{ {
@@ -42,10 +42,6 @@ struct Poll: Hashable {
endDate != nil endDate != nil
} }
var hasVotes: Bool {
votes.values.contains(where: { !$0.isEmpty })
}
enum Kind: Hashable { enum Kind: Hashable {
case disclosed case disclosed
case undisclosed case undisclosed
@@ -411,8 +411,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
body: poll.question, body: poll.question,
timestamp: eventItemProxy.timestamp.formatted(date: .omitted, time: .shortened), timestamp: eventItemProxy.timestamp.formatted(date: .omitted, time: .shortened),
isOutgoing: isOutgoing, isOutgoing: isOutgoing,
// FIX ME: `eventItemProxy.isEditable` needs to be fixed on the rust side (now returns always false) isEditable: eventItemProxy.isEditable,
isEditable: eventItemProxy.isOwn && !poll.hasVotes && !poll.hasEnded,
canBeRepliedTo: eventItemProxy.canBeRepliedTo, canBeRepliedTo: eventItemProxy.canBeRepliedTo,
sender: eventItemProxy.sender, sender: eventItemProxy.sender,
properties: RoomTimelineItemProperties(isEdited: edited, properties: RoomTimelineItemProperties(isEdited: edited,
+1 -1
View File
@@ -45,7 +45,7 @@ packages:
# Element/Matrix dependencies # Element/Matrix dependencies
MatrixRustSDK: MatrixRustSDK:
url: https://github.com/matrix-org/matrix-rust-components-swift url: https://github.com/matrix-org/matrix-rust-components-swift
exactVersion: 0.0.5-november23 exactVersion: 0.0.6-november23
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
url: https://github.com/vector-im/compound-ios url: https://github.com/vector-im/compound-ios