File tree Expand file tree Collapse file tree 3 files changed +314
-29
lines changed Expand file tree Collapse file tree 3 files changed +314
-29
lines changed Original file line number Diff line number Diff line change 1
1
// swift-tools-version:5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
import PackageDescription
4
- let checksum = " 2f7343c226604efb0cc05e7fd89721a3f39b85159715d064a4a5aff4f0acdf92 "
5
- let version = " 25.07.23 "
4
+ let checksum = " 175673536811fa8947f0001b2221524ac43db45708a8659da21826da6f52e292 "
5
+ let version = " 25.07.29 "
6
6
let url = " https://github.com/element-hq/matrix-rust-components-swift/releases/download/ \( version) /MatrixSDKFFI.xcframework.zip "
7
7
let package = Package (
8
8
name: " MatrixRustSDK " ,
Original file line number Diff line number Diff line change @@ -1725,6 +1725,19 @@ extension QrCodeLoginError: Foundation.LocalizedError {
1725
1725
1726
1726
public enum RoomMemberRole {
1727
1727
1728
+ /**
1729
+ * The member is a creator.
1730
+ *
1731
+ * A creator has an infinite power level and cannot be demoted, so this
1732
+ * role is immutable. A room can have several creators.
1733
+ *
1734
+ * It is available in room versions where
1735
+ * `explicitly_privilege_room_creators` in [`AuthorizationRules`] is set to
1736
+ * `true`.
1737
+ *
1738
+ * [`AuthorizationRules`]: ruma::room_version_rules::AuthorizationRules
1739
+ */
1740
+ case creator
1728
1741
/**
1729
1742
* The member is an administrator.
1730
1743
*/
@@ -1747,11 +1760,13 @@ public struct FfiConverterTypeRoomMemberRole: FfiConverterRustBuffer {
1747
1760
let variant : Int32 = try readInt ( & buf)
1748
1761
switch variant {
1749
1762
1750
- case 1 : return . administrator
1763
+ case 1 : return . creator
1764
+
1765
+ case 2 : return . administrator
1751
1766
1752
- case 2 : return . moderator
1767
+ case 3 : return . moderator
1753
1768
1754
- case 3 : return . user
1769
+ case 4 : return . user
1755
1770
1756
1771
default : throw UniffiInternalError . unexpectedEnumCase
1757
1772
}
@@ -1761,17 +1776,21 @@ public struct FfiConverterTypeRoomMemberRole: FfiConverterRustBuffer {
1761
1776
switch value {
1762
1777
1763
1778
1764
- case . administrator :
1779
+ case . creator :
1765
1780
writeInt ( & buf, Int32 ( 1 ) )
1766
1781
1767
1782
1768
- case . moderator :
1783
+ case . administrator :
1769
1784
writeInt ( & buf, Int32 ( 2 ) )
1770
1785
1771
1786
1772
- case . user :
1787
+ case . moderator :
1773
1788
writeInt ( & buf, Int32 ( 3 ) )
1774
1789
1790
+
1791
+ case . user:
1792
+ writeInt ( & buf, Int32 ( 4 ) )
1793
+
1775
1794
}
1776
1795
}
1777
1796
}
You can’t perform that action at this time.
0 commit comments