Update Compound. (#2514)

Fixes a bug with placeholder avatar rendering in Notifications.
This commit is contained in:
Doug
2024-03-01 13:14:52 +00:00
committed by GitHub
parent d304d98c85
commit ce667eab13
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -7120,7 +7120,7 @@
repositoryURL = "https://github.com/element-hq/compound-ios";
requirement = {
kind = revision;
revision = 98bd0ed412c29bd5b3762b673ca5720b6fb9d713;
revision = 19c778b6ce0b82601ecdca23ff8d4a7aa41f990f;
};
};
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {
@@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens.git",
"state" : {
"revision" : "d7c3bba963d6b7ffab862c3293eb242a8932a0c1",
"version" : "1.0.0"
"revision" : "c3fff1f2b042295cd5f4bcf8d4fe68ec47ca4061",
"version" : "1.2.0"
}
},
{
@@ -14,7 +14,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-ios",
"state" : {
"revision" : "98bd0ed412c29bd5b3762b673ca5720b6fb9d713"
"revision" : "19c778b6ce0b82601ecdca23ff8d4a7aa41f990f"
}
},
{
@@ -180,7 +180,7 @@ extension UNMutableNotificationContent {
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
let shouldFlipAvatar = shouldFlipAvatar()
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V7" : "V6")"
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V8F" : "V8")"
let fileName = "\(prefix)_\(name)_\(id).png"
if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) {
MXLog.info("Found existing notification icon placeholder")
+1
View File
@@ -0,0 +1 @@
Fix a bug where some avatar backgrounds were hard to see in notifications.
+1 -1
View File
@@ -52,7 +52,7 @@ packages:
# path: ../matrix-rust-sdk
Compound:
url: https://github.com/element-hq/compound-ios
revision: 98bd0ed412c29bd5b3762b673ca5720b6fb9d713
revision: 19c778b6ce0b82601ecdca23ff8d4a7aa41f990f
# path: ../compound-ios
AnalyticsEvents:
url: https://github.com/matrix-org/matrix-analytics-events