Skip to content

Commit

Permalink
Release 1.9.2 (395)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Dec 13, 2024
1 parent 8ffad03 commit 0e8fa7b
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 27 deletions.
8 changes: 4 additions & 4 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 18 additions & 5 deletions Nicegram/NGStats/Sources/ChatsSharing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private func sharePeerData(
default:
return
}

let sharePeerDataUseCase = NicegramHubContainer.shared.sharePeerDataUseCase()

await sharePeerDataUseCase(
Expand Down Expand Up @@ -118,6 +118,7 @@ private func extractPayload(
extractPayload(
bot: user,
botInfo: botInfo,
cachedData: cachedData as? CachedUserData,
lastMessageLanguageCode: interlocutorLanguage
)
)
Expand All @@ -129,7 +130,11 @@ private func extractPayload(
}
}

private func extractPayload(group: TelegramGroup, cachedData: CachedGroupData?, lastMessageLanguageCode: String?) -> LegacyGroupPayload {
private func extractPayload(
group: TelegramGroup,
cachedData: CachedGroupData?,
lastMessageLanguageCode: String?
) -> LegacyGroupPayload {
LegacyGroupPayload(
deactivated: group.flags.contains(.deactivated),
title: group.title,
Expand All @@ -142,7 +147,11 @@ private func extractPayload(group: TelegramGroup, cachedData: CachedGroupData?,
)
}

private func extractPayload(channel: TelegramChannel, cachedData: CachedChannelData?, lastMessageLanguageCode: String?) -> ChannelPayload {
private func extractPayload(
channel: TelegramChannel,
cachedData: CachedChannelData?,
lastMessageLanguageCode: String?
) -> ChannelPayload {
ChannelPayload(
verified: channel.isVerified,
scam: channel.isScam,
Expand All @@ -166,6 +175,7 @@ private func extractPayload(channel: TelegramChannel, cachedData: CachedChannelD
private func extractPayload(
bot: TelegramUser,
botInfo: BotUserInfo,
cachedData: CachedUserData?,
lastMessageLanguageCode: String?
) -> UserPayload {
let botFlags = botInfo.flags
Expand Down Expand Up @@ -199,7 +209,8 @@ private func extractPayload(
active: $0.isActive,
username: $0.username
)
}
},
description: cachedData?.botInfo?.description
)
}

Expand Down Expand Up @@ -266,7 +277,9 @@ private func extractGeoLocation(
GeoLocation(latitude: geo.latitude, longitude: geo.longitude, address: geo.address)
}

private func extractInviteLinks(_ links: ExportedInvitations?) -> [InviteLink]? {
private func extractInviteLinks(
_ links: ExportedInvitations?
) -> [InviteLink]? {
links?.list?.compactMap { link in
switch link {
case let .link(link, title, isPermanent, requestApproval, isRevoked, adminId, date, startDate, expireDate, usageLimit, count, requestedCount, _):
Expand Down
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"location" : "[email protected]:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "master",
"revision" : "51eee9dd7af19fed75e00e117a777d907a9be189"
"revision" : "8112c79a18205330e3993825a782b6705469d50d"
}
},
{
Expand All @@ -123,7 +123,7 @@
"location" : "[email protected]:mobyrix/nicegram-wallet-ios.git",
"state" : {
"branch" : "master",
"revision" : "3fefdb8ee40b9708e7760a157b73a997b5f414e7"
"revision" : "69efa8724a63fd366dd506d0135aa826617703cc"
}
},
{
Expand Down Expand Up @@ -338,8 +338,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/trustwallet/wallet-core.git",
"state" : {
"revision" : "60ef068eb19138ac05b8bc3c966ef770ef9fc8f2",
"version" : "4.1.20"
"revision" : "99b69d1c2267354270769f6adef2d370553ce436",
"version" : "4.1.21"
}
},
{
Expand Down
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/ar.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ حدد لغة رسالتك الصوتية لتحسين الدقة، أو [فعّل Whisper](https://my.nicegram.app/) للتعرف التلقائي بدون جهد";
"NicegramSpeechToText.Language.Choose" = "اختر لغة للتعرف عليها";
"NicegramSpeechToText.SelectLanguage" = "حدد اللغة";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "اشترِ في Fragment";
"StarsPurchase.GetOnTelegram" = "اشترِ في Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/de.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Wählen Sie die Sprache Ihrer Sprachnachricht, um die Genauigkeit zu erhöhen, oder [aktivieren Sie Whisper](https://my.nicegram.app/) für eine mühelose automatische Erkennung";
"NicegramSpeechToText.Language.Choose" = "Wählen Sie eine Sprache zur Erkennung";
"NicegramSpeechToText.SelectLanguage" = "Sprache auswählen";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Kaufen auf Fragment";
"StarsPurchase.GetOnTelegram" = "Kaufen auf Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/es.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Seleccione el idioma de su mensaje de voz para mejorar la precisión, o [active Whisper](https://my.nicegram.app/) para un reconocimiento automático sin esfuerzo";
"NicegramSpeechToText.Language.Choose" = "Elige un idioma para el reconocimiento";
"NicegramSpeechToText.SelectLanguage" = "Selecciona un idioma";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Compra en Fragment";
"StarsPurchase.GetOnTelegram" = "Compra en Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/fr.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Sélectionnez la langue de votre message vocal pour améliorer la précision, ou [activez Whisper](https://my.nicegram.app/) pour une reconnaissance automatique sans effort";
"NicegramSpeechToText.Language.Choose" = "Choisissez une langue pour la reconnaissance";
"NicegramSpeechToText.SelectLanguage" = "Sélectionner la langue";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Achetez sur Fragment";
"StarsPurchase.GetOnTelegram" = "Achetez sur Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/it.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Seleziona la lingua del tuo messaggio vocale per aumentare l'accuratezza, oppure [attiva Whisper](https://my.nicegram.app/) per un riconoscimento automatico senza sforzo";
"NicegramSpeechToText.Language.Choose" = "Scegli una lingua per il riconoscimento";
"NicegramSpeechToText.SelectLanguage" = "Seleziona la lingua";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Acquista su Fragment";
"StarsPurchase.GetOnTelegram" = "Acquista su Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/ko.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ 정확도를 높이기 위해 음성 메시지의 언어를 선택하거나, [Whisper를 활성화](https://my.nicegram.app/)하여 수월한 자동 인식을 사용하세요";
"NicegramSpeechToText.Language.Choose" = "인식할 언어 선택";
"NicegramSpeechToText.SelectLanguage" = "언어 선택";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Fragment에서 구입";
"StarsPurchase.GetOnTelegram" = "Telegram에서 구입";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/pl.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Wybierz język swojej wiadomości głosowej, aby zwiększyć dokładność, lub [aktywuj Whisper](https://my.nicegram.app/) dla bezproblemowego automatycznego rozpoznawania";
"NicegramSpeechToText.Language.Choose" = "Wybierz język do rozpoznania";
"NicegramSpeechToText.SelectLanguage" = "Wybierz język";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Kup w Fragment";
"StarsPurchase.GetOnTelegram" = "Kup w Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/pt.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Selecione o idioma da sua mensagem de voz para aumentar a precisão, ou [ative o Whisper](https://my.nicegram.app/) para reconhecimento automático sem esforço";
"NicegramSpeechToText.Language.Choose" = "Escolha um idioma para reconhecimento";
"NicegramSpeechToText.SelectLanguage" = "Selecionar idioma";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Compre em Fragment";
"StarsPurchase.GetOnTelegram" = "Compre em Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/ru.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Выберите язык голосового сообщения для повышения точности, или [активируйте Whisper](https://my.nicegram.app/) для упрощения автоматического распознавания";
"NicegramSpeechToText.Language.Choose" = "Выберите язык для распознавания";
"NicegramSpeechToText.SelectLanguage" = "Выбрать язык";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Купить в Fragment";
"StarsPurchase.GetOnTelegram" = "Купить в Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/tr.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ Sesli mesajınızın dilini seçerek doğruluğu artırın, veya [Whisper'ı etkinleştirin](https://my.nicegram.app/) zahmetsiz otomatik tanıma için";
"NicegramSpeechToText.Language.Choose" = "Tanıma için bir dil seçin";
"NicegramSpeechToText.SelectLanguage" = "Dil Seç";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "Fragment'tan al";
"StarsPurchase.GetOnTelegram" = "Telegram'dan al";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/zh-hans.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ 选择您语音消息的语言以提高准确性,或[激活 Whisper](https://my.nicegram.app/) 进行轻松的自动识别";
"NicegramSpeechToText.Language.Choose" = "选择识别语言";
"NicegramSpeechToText.SelectLanguage" = "选择语言";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "购买于 Fragment";
"StarsPurchase.GetOnTelegram" = "购买于 Telegram";
4 changes: 4 additions & 0 deletions Telegram/Telegram-iOS/zh-hant.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@
"NicegramSpeechToText.Language.Whisper" = "⚠️ 選擇您語音消息的語言以提高準確性,或[啟動 Whisper](https://my.nicegram.app/) 以輕鬆自動識別";
"NicegramSpeechToText.Language.Choose" = "選擇識別語言";
"NicegramSpeechToText.SelectLanguage" = "選擇語言";

/*Stars Purchase*/
"StarsPurchase.GetOnFragment" = "購買於 Fragment";
"StarsPurchase.GetOnTelegram" = "購買於 Telegram";
26 changes: 13 additions & 13 deletions submodules/TelegramCallsUI/Sources/PresentationCallManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
}
// MARK: Nicegram NCG-5828 call recording
public var callCompletion: (() -> Void)?

private weak var audioDevice: OngoingCallContext.AudioDevice?
private var accountContext: AccountContext?
private var enginePeer: EnginePeer?
Expand Down Expand Up @@ -1003,7 +1003,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager {

return dateFormatter
}()

private func deleteFile(from path: String) {
let fileManager = FileManager.default

Expand All @@ -1026,13 +1026,13 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
completion: (() -> Void)? = nil
) {
let date = Date()

let id = Int64.random(in: 0 ... Int64.max)
let resource = LocalFileReferenceMediaResource(
localFilePath: path,
randomId: id
)

let file = TelegramMediaFile(
fileId: EngineMedia.Id(namespace: Namespaces.Media.LocalFile, id: id),
partialReference: nil,
Expand All @@ -1046,16 +1046,16 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
.Audio(
isVoice: true,
duration: Int(duration),
title: "\(userDisplayName)-\(dateFormatter.string(from: date))",
title: "",
performer: nil,
waveform: nil
)
],
alternativeRepresentations: []
)

let message: EnqueueMessage = .message(
text: "",
text: "\(userDisplayName)-\(dateFormatter.string(from: date))",
attributes: [],
inlineStickers: [:],
mediaReference: .standalone(media: file),
Expand All @@ -1082,7 +1082,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
}
}
}

private func callActiveState(
with audioDevice: OngoingCallContext.AudioDevice?,
accountContext: AccountContext
Expand All @@ -1092,7 +1092,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
self.accountContext = accountContext
}
}

public func startRecordCall(
with completion: @escaping () -> Void
) {
Expand All @@ -1108,15 +1108,15 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
})
sendCallRecorderAnalytics(with: .start)
}

public func stopRecordCall() {
audioDevice?.stopNicegramRecording()
}

public func setupPeer(peer: EnginePeer) {
self.enginePeer = peer
}

public func showRecordSaveToast() {
let (presentationData, _, _) = getDeviceAccessData()
guard let image = UIImage(bundleImageName: "RecordSave") else { return }
Expand All @@ -1128,7 +1128,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager {
round: true,
undoText: nil
)

DispatchQueue.main.async {
let controller = UndoOverlayController(
presentationData: presentationData,
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app": "1.9.1",
"app": "1.9.2",
"xcode": "16.0",
"bazel": "7.3.1:981f82a470bad1349322b6f51c9c6ffa0aa291dab1014fac411543c12e661dff",
"macos": "15.0"
Expand Down

0 comments on commit 0e8fa7b

Please sign in to comment.