mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-08 12:24:39 +00:00
Update submodules
This commit is contained in:
@@ -335,12 +335,14 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
var inputFileLocation: (Int32, Api.InputFileLocation)?
|
||||
var fetchResourceId: String?
|
||||
var isPng = false
|
||||
var isExpandableMedia = false
|
||||
|
||||
if let attachment = attachment {
|
||||
switch attachment {
|
||||
case let .photo(photo):
|
||||
switch photo {
|
||||
case let .photo(_, id, accessHash, fileReference, _, sizes, dcId):
|
||||
isExpandableMedia = true
|
||||
loop: for size in sizes {
|
||||
switch size {
|
||||
case let .photoSize(type, _, _, _, _):
|
||||
@@ -368,6 +370,9 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
break
|
||||
}
|
||||
}
|
||||
if isSticker {
|
||||
isExpandableMedia = true
|
||||
}
|
||||
if let thumbs = thumbs {
|
||||
loop: for size in thumbs {
|
||||
switch size {
|
||||
@@ -425,10 +430,12 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
|
||||
userInfo["media"] = attachmentData.base64EncodedString()
|
||||
|
||||
if category == "r" {
|
||||
self.bestAttemptContent?.categoryIdentifier = "withReplyMedia"
|
||||
} else if category == "m" {
|
||||
self.bestAttemptContent?.categoryIdentifier = "withMuteMedia"
|
||||
if isExpandableMedia {
|
||||
if category == "r" {
|
||||
self.bestAttemptContent?.categoryIdentifier = "withReplyMedia"
|
||||
} else if category == "m" {
|
||||
self.bestAttemptContent?.categoryIdentifier = "withMuteMedia"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4233,3 +4233,7 @@ Unused sets are archived when you add more.";
|
||||
"ChatList.UnarchiveAction" = "Unarchive";
|
||||
"ChatList.HideAction" = "Hide";
|
||||
"ChatList.UnhideAction" = "Unhide";
|
||||
|
||||
"ChatList.UndoArchiveTitle" = "Chat Archived";
|
||||
"ChatList.UndoArchiveText" = "Muted chats will stay archived after new messages arrive.";
|
||||
"ChatList.ArchivedChatsTitle" = "Archived Chats";
|
||||
|
||||
Submodule submodules/Postbox updated: dcd5efe786...e18ec69dd6
Submodule submodules/TelegramCore updated: 1b3b5aad52...20b755baf3
Submodule submodules/TelegramUI updated: 30dceb365b...ef10041525
Reference in New Issue
Block a user