mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +00:00
Update submodules
This commit is contained in:
parent
02f95a726f
commit
06a69d4f81
@ -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";
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit dcd5efe7860714c519dd7fe6268b24fcc05026cb
|
||||
Subproject commit e18ec69dd6e0edec8e4c4a8f2fde797295085168
|
@ -1 +1 @@
|
||||
Subproject commit 1b3b5aad52e624d0280d93ecb17b7f058c45cd40
|
||||
Subproject commit 20b755baf35cd7db541f7cd489388dfd1b640d0c
|
@ -1 +1 @@
|
||||
Subproject commit 30dceb365be51424b7f29031a2a61ecfeac2b4f5
|
||||
Subproject commit ef10041525194b49058f86a6e360e2951e927c2f
|
Loading…
x
Reference in New Issue
Block a user