mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
no message
This commit is contained in:
parent
bdb87523be
commit
c8619024fe
@ -90,7 +90,7 @@ public class InviteContactsController: ViewController, MFMessageComposeViewContr
|
|||||||
self.contactsNode.requestShareTelegram = { [weak self] in
|
self.contactsNode.requestShareTelegram = { [weak self] in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let url = strongSelf.presentationData.strings.InviteText_URL
|
let url = strongSelf.presentationData.strings.InviteText_URL
|
||||||
var body = strongSelf.presentationData.strings.InviteText_SingleContact(url).0
|
let body = strongSelf.presentationData.strings.InviteText_SingleContact(url).0
|
||||||
|
|
||||||
let shareController = ShareController(account: strongSelf.account, subject: .text(body), externalShare: true, immediateExternalShare: true)
|
let shareController = ShareController(account: strongSelf.account, subject: .text(body), externalShare: true, immediateExternalShare: true)
|
||||||
strongSelf.present(shareController, in: .window(.root))
|
strongSelf.present(shareController, in: .window(.root))
|
||||||
@ -110,8 +110,8 @@ public class InviteContactsController: ViewController, MFMessageComposeViewContr
|
|||||||
let url = strongSelf.presentationData.strings.InviteText_URL
|
let url = strongSelf.presentationData.strings.InviteText_URL
|
||||||
var body = strongSelf.presentationData.strings.InviteText_SingleContact(url).0
|
var body = strongSelf.presentationData.strings.InviteText_SingleContact(url).0
|
||||||
if numbers.count == 1, numbers[0].1 > 0 {
|
if numbers.count == 1, numbers[0].1 > 0 {
|
||||||
body = strongSelf.presentationData.strings.InviteText_ContactsCount(numbers[0].1)
|
body = strongSelf.presentationData.strings.InviteText_ContactsCountText(numbers[0].1)
|
||||||
body = body.replacingOccurrences(of: "(null)", with: url)
|
body = body.replacingOccurrences(of: "{url}", with: url)
|
||||||
}
|
}
|
||||||
composer.body = body
|
composer.body = body
|
||||||
strongSelf.composer = composer
|
strongSelf.composer = composer
|
||||||
|
|||||||
@ -340,18 +340,18 @@ final class InviteContactsControllerNode: ASDisplayNode {
|
|||||||
self.addSubnode(self.countPanelNode)
|
self.addSubnode(self.countPanelNode)
|
||||||
|
|
||||||
self.presentationDataDisposable = (account.telegramApplicationContext.presentationData
|
self.presentationDataDisposable = (account.telegramApplicationContext.presentationData
|
||||||
|> deliverOnMainQueue).start(next: { [weak self] presentationData in
|
|> deliverOnMainQueue).start(next: { [weak self] presentationData in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let previousTheme = strongSelf.presentationData.theme
|
let previousTheme = strongSelf.presentationData.theme
|
||||||
let previousStrings = strongSelf.presentationData.strings
|
let previousStrings = strongSelf.presentationData.strings
|
||||||
|
|
||||||
strongSelf.presentationData = presentationData
|
strongSelf.presentationData = presentationData
|
||||||
|
|
||||||
if previousTheme !== presentationData.theme || previousStrings !== presentationData.strings {
|
if previousTheme !== presentationData.theme || previousStrings !== presentationData.strings {
|
||||||
strongSelf.updateThemeAndStrings()
|
strongSelf.updateThemeAndStrings()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
let account = self.account
|
let account = self.account
|
||||||
var firstTime: Int32 = 1
|
var firstTime: Int32 = 1
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user