mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update Compound. (#2514)
Fixes a bug with placeholder avatar rendering in Notifications.
This commit is contained in:
@@ -7120,7 +7120,7 @@
|
|||||||
repositoryURL = "https://github.com/element-hq/compound-ios";
|
repositoryURL = "https://github.com/element-hq/compound-ios";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = revision;
|
kind = revision;
|
||||||
revision = 98bd0ed412c29bd5b3762b673ca5720b6fb9d713;
|
revision = 19c778b6ce0b82601ecdca23ff8d4a7aa41f990f;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {
|
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/element-hq/compound-design-tokens.git",
|
"location" : "https://github.com/element-hq/compound-design-tokens.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "d7c3bba963d6b7ffab862c3293eb242a8932a0c1",
|
"revision" : "c3fff1f2b042295cd5f4bcf8d4fe68ec47ca4061",
|
||||||
"version" : "1.0.0"
|
"version" : "1.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/element-hq/compound-ios",
|
"location" : "https://github.com/element-hq/compound-ios",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "98bd0ed412c29bd5b3762b673ca5720b6fb9d713"
|
"revision" : "19c778b6ce0b82601ecdca23ff8d4a7aa41f990f"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ extension UNMutableNotificationContent {
|
|||||||
private func getPlaceholderAvatarImageData(name: String, id: String) async -> Data? {
|
private func getPlaceholderAvatarImageData(name: String, id: String) async -> Data? {
|
||||||
// The version value is used in case the design of the placeholder is updated to force a replacement
|
// The version value is used in case the design of the placeholder is updated to force a replacement
|
||||||
let shouldFlipAvatar = shouldFlipAvatar()
|
let shouldFlipAvatar = shouldFlipAvatar()
|
||||||
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V7" : "V6")"
|
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V8F" : "V8")"
|
||||||
let fileName = "\(prefix)_\(name)_\(id).png"
|
let fileName = "\(prefix)_\(name)_\(id).png"
|
||||||
if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) {
|
if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) {
|
||||||
MXLog.info("Found existing notification icon placeholder")
|
MXLog.info("Found existing notification icon placeholder")
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fix a bug where some avatar backgrounds were hard to see in notifications.
|
||||||
+1
-1
@@ -52,7 +52,7 @@ packages:
|
|||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
url: https://github.com/element-hq/compound-ios
|
url: https://github.com/element-hq/compound-ios
|
||||||
revision: 98bd0ed412c29bd5b3762b673ca5720b6fb9d713
|
revision: 19c778b6ce0b82601ecdca23ff8d4a7aa41f990f
|
||||||
# path: ../compound-ios
|
# path: ../compound-ios
|
||||||
AnalyticsEvents:
|
AnalyticsEvents:
|
||||||
url: https://github.com/matrix-org/matrix-analytics-events
|
url: https://github.com/matrix-org/matrix-analytics-events
|
||||||
|
|||||||
Reference in New Issue
Block a user