mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Try voice
This commit is contained in:
parent
11aa6eb76b
commit
26a572f4b8
@ -1534,6 +1534,15 @@ private final class NotificationServiceHandler {
|
|||||||
content.attachments.append(attachment)
|
content.attachments.append(attachment)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if file.isVoice {
|
||||||
|
if let mediaData = mediaData {
|
||||||
|
stateManager.postbox.mediaBox.storeResourceData(file.resource.id, data: mediaData, synchronous: true)
|
||||||
|
}
|
||||||
|
if let storedPath = stateManager.postbox.mediaBox.completedResourcePath(file.resource, pathExtension: "ogg") {
|
||||||
|
if let attachment = try? UNNotificationAttachment(identifier: "audio", url: URL(fileURLWithPath: storedPath), options: nil) {
|
||||||
|
content.attachments.append(attachment)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user