Skip to content

Commit 21e8bc0

Browse files
author
Isaac
committed
Cleanup
1 parent 7b18685 commit 21e8bc0

6 files changed

Lines changed: 18 additions & 42 deletions

File tree

‎Telegram/Telegram-iOS/en.lproj/Localizable.strings‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14448,6 +14448,8 @@ Sorry for the inconvenience.";
1444814448
"SuggestPost.SetTimeFormat.Date" = "%@";
1444914449
"SuggestPost.SetTimeFormat.TodayAt" = "Today at %@";
1445014450
"SuggestPost.SetTimeFormat.TomorrowAt" = "Tomorrow at %@";
14451+
"SuggestPost.SetTimeFormat.Any" = "Anytime";
14452+
"SuggestPost.SetTime.Label" = "Time";
1445114453

1445214454
"Chat.TodoItemCompletionTimestamp.Date" = "completed %@";
1445314455
"Chat.TodoItemCompletionTimestamp.TodayAt" = "completed today at %@";

‎submodules/TelegramUI/Components/AnimationCache/ImageDCT/BUILD‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ objc_library(
1616
includes = [
1717
"PublicHeaders",
1818
],
19+
copts = [
20+
],
1921
sdk_frameworks = [
2022
"Foundation",
2123
"Accelerate",

‎submodules/TelegramUI/Components/AnimationCache/ImageDCT/Sources/DCT.cpp‎

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -371,43 +371,9 @@ typedef int16_t tran_low_t;
371371
typedef int32_t tran_high_t;
372372
typedef int16_t tran_coef_t;
373373

374-
static const tran_coef_t cospi_1_64 = 16364;
375-
static const tran_coef_t cospi_2_64 = 16305;
376-
static const tran_coef_t cospi_3_64 = 16207;
377-
static const tran_coef_t cospi_4_64 = 16069;
378-
static const tran_coef_t cospi_5_64 = 15893;
379-
static const tran_coef_t cospi_6_64 = 15679;
380-
static const tran_coef_t cospi_7_64 = 15426;
381374
static const tran_coef_t cospi_8_64 = 15137;
382-
static const tran_coef_t cospi_9_64 = 14811;
383-
static const tran_coef_t cospi_10_64 = 14449;
384-
static const tran_coef_t cospi_11_64 = 14053;
385-
static const tran_coef_t cospi_12_64 = 13623;
386-
static const tran_coef_t cospi_13_64 = 13160;
387-
static const tran_coef_t cospi_14_64 = 12665;
388-
static const tran_coef_t cospi_15_64 = 12140;
389375
static const tran_coef_t cospi_16_64 = 11585;
390-
static const tran_coef_t cospi_17_64 = 11003;
391-
static const tran_coef_t cospi_18_64 = 10394;
392-
static const tran_coef_t cospi_19_64 = 9760;
393-
static const tran_coef_t cospi_20_64 = 9102;
394-
static const tran_coef_t cospi_21_64 = 8423;
395-
static const tran_coef_t cospi_22_64 = 7723;
396-
static const tran_coef_t cospi_23_64 = 7005;
397376
static const tran_coef_t cospi_24_64 = 6270;
398-
static const tran_coef_t cospi_25_64 = 5520;
399-
static const tran_coef_t cospi_26_64 = 4756;
400-
static const tran_coef_t cospi_27_64 = 3981;
401-
static const tran_coef_t cospi_28_64 = 3196;
402-
static const tran_coef_t cospi_29_64 = 2404;
403-
static const tran_coef_t cospi_30_64 = 1606;
404-
static const tran_coef_t cospi_31_64 = 804;
405-
406-
// 16384 * sqrt(2) * sin(kPi/9) * 2 / 3
407-
static const tran_coef_t sinpi_1_9 = 5283;
408-
static const tran_coef_t sinpi_2_9 = 9929;
409-
static const tran_coef_t sinpi_3_9 = 13377;
410-
static const tran_coef_t sinpi_4_9 = 15212;
411377

412378
#define DCT_CONST_BITS 14
413379
#define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1))
@@ -490,7 +456,7 @@ void vpx_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride) {
490456

491457
#define ROUND_POWER_OF_TWO(value, n) (((value) + (1 << ((n)-1))) >> (n))
492458

493-
static inline tran_high_t dct_const_round_shift(tran_high_t input) {
459+
/*static inline tran_high_t dct_const_round_shift(tran_high_t input) {
494460
tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
495461
return (tran_high_t)rv;
496462
}
@@ -507,11 +473,11 @@ static inline tran_high_t check_range(tran_high_t input) {
507473
assert(input <= INT16_MAX);
508474
#endif // CONFIG_COEFFICIENT_RANGE_CHECKING
509475
return input;
510-
}
476+
}*/
511477

512478
#define WRAPLOW(x) ((int32_t)check_range(x))
513479

514-
void idct4_c(const tran_low_t *input, tran_low_t *output) {
480+
/*void idct4_c(const tran_low_t *input, tran_low_t *output) {
515481
int16_t step[4];
516482
tran_high_t temp1, temp2;
517483
@@ -553,7 +519,7 @@ void vpx_idct4x4_16_add_c(const tran_low_t *input, tran_low_t *dest, int stride)
553519
dest[j * stride + i] = ROUND_POWER_OF_TWO(temp_out[j], 4);
554520
}
555521
}
556-
}
522+
}*/
557523

558524
#if defined(__aarch64__)
559525

‎submodules/TelegramUI/Components/Stars/StarsWithdrawalScreen/Sources/StarsWithdrawalScreen.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ private final class SheetContent: CombinedComponent {
603603
}
604604
)).string
605605
} else {
606-
timeString = "Anytime"
606+
timeString = strings.SuggestPost_SetTimeFormat_Any
607607
}
608608

609609
let timestampSection = timestampSection.update(
@@ -618,7 +618,7 @@ private final class SheetContent: CombinedComponent {
618618
title: AnyComponent(VStack([
619619
AnyComponentWithIdentity(id: AnyHashable(0), component: AnyComponent(MultilineTextComponent(
620620
text: .plain(NSAttributedString(
621-
string: "Time",
621+
string: environment.strings.SuggestPost_SetTime_Label,
622622
font: Font.regular(presentationData.listsFontSize.baseDisplaySize),
623623
textColor: environment.theme.list.itemPrimaryTextColor
624624
)),

‎submodules/TelegramUI/Sources/ChatController.swift‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,6 +2379,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
23792379
funds = (amount, amount.currency == .stars ? Int(configuration.channelMessageSuggestionStarsCommissionPermille) : Int(configuration.channelMessageSuggestionTonCommissionPermille))
23802380
}
23812381

2382+
#if DEBUG
2383+
if "".isEmpty {
2384+
funds = nil
2385+
}
2386+
#endif
2387+
23822388
var isAdmin = false
23832389
if let channel = strongSelf.presentationInterfaceState.renderedPeer?.peer as? TelegramChannel, channel.isMonoForum, let linkedMonoforumId = channel.linkedMonoforumId, let mainChannel = strongSelf.presentationInterfaceState.renderedPeer?.peers[linkedMonoforumId] as? TelegramChannel, mainChannel.hasPermission(.manageDirect) {
23842390
isAdmin = true

‎third-party/webrtc/BUILD‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3061,7 +3061,7 @@ objc_library(
30613061
"webrtc/rtc_base/system/gcd_helpers.m",
30623062
],
30633063
copts = [
3064-
"-Wno-all",
3064+
"-w",
30653065
"-Ithird-party/webrtc/webrtc/",
30663066
"-Ithird-party/webrtc/webrtc/sdk/objc",
30673067
"-Ithird-party/webrtc/webrtc/sdk/objc/base",
@@ -3124,7 +3124,7 @@ objc_library(
31243124
module_name = "webrtc",
31253125
srcs = combined_sources,
31263126
copts = [
3127-
"-Wno-all",
3127+
"-w",
31283128
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/include",
31293129
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/crypto/include",
31303130
"-Ithird-party/webrtc/libsrtp",

0 commit comments

Comments
 (0)