mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-23 16:50:11 +00:00
Cleanup
This commit is contained in:
parent
7b18685825
commit
21e8bc02ca
@ -14448,6 +14448,8 @@ Sorry for the inconvenience.";
|
|||||||
"SuggestPost.SetTimeFormat.Date" = "%@";
|
"SuggestPost.SetTimeFormat.Date" = "%@";
|
||||||
"SuggestPost.SetTimeFormat.TodayAt" = "Today at %@";
|
"SuggestPost.SetTimeFormat.TodayAt" = "Today at %@";
|
||||||
"SuggestPost.SetTimeFormat.TomorrowAt" = "Tomorrow at %@";
|
"SuggestPost.SetTimeFormat.TomorrowAt" = "Tomorrow at %@";
|
||||||
|
"SuggestPost.SetTimeFormat.Any" = "Anytime";
|
||||||
|
"SuggestPost.SetTime.Label" = "Time";
|
||||||
|
|
||||||
"Chat.TodoItemCompletionTimestamp.Date" = "completed %@";
|
"Chat.TodoItemCompletionTimestamp.Date" = "completed %@";
|
||||||
"Chat.TodoItemCompletionTimestamp.TodayAt" = "completed today at %@";
|
"Chat.TodoItemCompletionTimestamp.TodayAt" = "completed today at %@";
|
||||||
|
|||||||
@ -16,6 +16,8 @@ objc_library(
|
|||||||
includes = [
|
includes = [
|
||||||
"PublicHeaders",
|
"PublicHeaders",
|
||||||
],
|
],
|
||||||
|
copts = [
|
||||||
|
],
|
||||||
sdk_frameworks = [
|
sdk_frameworks = [
|
||||||
"Foundation",
|
"Foundation",
|
||||||
"Accelerate",
|
"Accelerate",
|
||||||
|
|||||||
@ -371,43 +371,9 @@ typedef int16_t tran_low_t;
|
|||||||
typedef int32_t tran_high_t;
|
typedef int32_t tran_high_t;
|
||||||
typedef int16_t tran_coef_t;
|
typedef int16_t tran_coef_t;
|
||||||
|
|
||||||
static const tran_coef_t cospi_1_64 = 16364;
|
|
||||||
static const tran_coef_t cospi_2_64 = 16305;
|
|
||||||
static const tran_coef_t cospi_3_64 = 16207;
|
|
||||||
static const tran_coef_t cospi_4_64 = 16069;
|
|
||||||
static const tran_coef_t cospi_5_64 = 15893;
|
|
||||||
static const tran_coef_t cospi_6_64 = 15679;
|
|
||||||
static const tran_coef_t cospi_7_64 = 15426;
|
|
||||||
static const tran_coef_t cospi_8_64 = 15137;
|
static const tran_coef_t cospi_8_64 = 15137;
|
||||||
static const tran_coef_t cospi_9_64 = 14811;
|
|
||||||
static const tran_coef_t cospi_10_64 = 14449;
|
|
||||||
static const tran_coef_t cospi_11_64 = 14053;
|
|
||||||
static const tran_coef_t cospi_12_64 = 13623;
|
|
||||||
static const tran_coef_t cospi_13_64 = 13160;
|
|
||||||
static const tran_coef_t cospi_14_64 = 12665;
|
|
||||||
static const tran_coef_t cospi_15_64 = 12140;
|
|
||||||
static const tran_coef_t cospi_16_64 = 11585;
|
static const tran_coef_t cospi_16_64 = 11585;
|
||||||
static const tran_coef_t cospi_17_64 = 11003;
|
|
||||||
static const tran_coef_t cospi_18_64 = 10394;
|
|
||||||
static const tran_coef_t cospi_19_64 = 9760;
|
|
||||||
static const tran_coef_t cospi_20_64 = 9102;
|
|
||||||
static const tran_coef_t cospi_21_64 = 8423;
|
|
||||||
static const tran_coef_t cospi_22_64 = 7723;
|
|
||||||
static const tran_coef_t cospi_23_64 = 7005;
|
|
||||||
static const tran_coef_t cospi_24_64 = 6270;
|
static const tran_coef_t cospi_24_64 = 6270;
|
||||||
static const tran_coef_t cospi_25_64 = 5520;
|
|
||||||
static const tran_coef_t cospi_26_64 = 4756;
|
|
||||||
static const tran_coef_t cospi_27_64 = 3981;
|
|
||||||
static const tran_coef_t cospi_28_64 = 3196;
|
|
||||||
static const tran_coef_t cospi_29_64 = 2404;
|
|
||||||
static const tran_coef_t cospi_30_64 = 1606;
|
|
||||||
static const tran_coef_t cospi_31_64 = 804;
|
|
||||||
|
|
||||||
// 16384 * sqrt(2) * sin(kPi/9) * 2 / 3
|
|
||||||
static const tran_coef_t sinpi_1_9 = 5283;
|
|
||||||
static const tran_coef_t sinpi_2_9 = 9929;
|
|
||||||
static const tran_coef_t sinpi_3_9 = 13377;
|
|
||||||
static const tran_coef_t sinpi_4_9 = 15212;
|
|
||||||
|
|
||||||
#define DCT_CONST_BITS 14
|
#define DCT_CONST_BITS 14
|
||||||
#define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1))
|
#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) {
|
|||||||
|
|
||||||
#define ROUND_POWER_OF_TWO(value, n) (((value) + (1 << ((n)-1))) >> (n))
|
#define ROUND_POWER_OF_TWO(value, n) (((value) + (1 << ((n)-1))) >> (n))
|
||||||
|
|
||||||
static inline tran_high_t dct_const_round_shift(tran_high_t input) {
|
/*static inline tran_high_t dct_const_round_shift(tran_high_t input) {
|
||||||
tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
|
tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
|
||||||
return (tran_high_t)rv;
|
return (tran_high_t)rv;
|
||||||
}
|
}
|
||||||
@ -507,11 +473,11 @@ static inline tran_high_t check_range(tran_high_t input) {
|
|||||||
assert(input <= INT16_MAX);
|
assert(input <= INT16_MAX);
|
||||||
#endif // CONFIG_COEFFICIENT_RANGE_CHECKING
|
#endif // CONFIG_COEFFICIENT_RANGE_CHECKING
|
||||||
return input;
|
return input;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
#define WRAPLOW(x) ((int32_t)check_range(x))
|
#define WRAPLOW(x) ((int32_t)check_range(x))
|
||||||
|
|
||||||
void idct4_c(const tran_low_t *input, tran_low_t *output) {
|
/*void idct4_c(const tran_low_t *input, tran_low_t *output) {
|
||||||
int16_t step[4];
|
int16_t step[4];
|
||||||
tran_high_t temp1, temp2;
|
tran_high_t temp1, temp2;
|
||||||
|
|
||||||
@ -553,7 +519,7 @@ void vpx_idct4x4_16_add_c(const tran_low_t *input, tran_low_t *dest, int stride)
|
|||||||
dest[j * stride + i] = ROUND_POWER_OF_TWO(temp_out[j], 4);
|
dest[j * stride + i] = ROUND_POWER_OF_TWO(temp_out[j], 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
#if defined(__aarch64__)
|
#if defined(__aarch64__)
|
||||||
|
|
||||||
|
|||||||
@ -603,7 +603,7 @@ private final class SheetContent: CombinedComponent {
|
|||||||
}
|
}
|
||||||
)).string
|
)).string
|
||||||
} else {
|
} else {
|
||||||
timeString = "Anytime"
|
timeString = strings.SuggestPost_SetTimeFormat_Any
|
||||||
}
|
}
|
||||||
|
|
||||||
let timestampSection = timestampSection.update(
|
let timestampSection = timestampSection.update(
|
||||||
@ -618,7 +618,7 @@ private final class SheetContent: CombinedComponent {
|
|||||||
title: AnyComponent(VStack([
|
title: AnyComponent(VStack([
|
||||||
AnyComponentWithIdentity(id: AnyHashable(0), component: AnyComponent(MultilineTextComponent(
|
AnyComponentWithIdentity(id: AnyHashable(0), component: AnyComponent(MultilineTextComponent(
|
||||||
text: .plain(NSAttributedString(
|
text: .plain(NSAttributedString(
|
||||||
string: "Time",
|
string: environment.strings.SuggestPost_SetTime_Label,
|
||||||
font: Font.regular(presentationData.listsFontSize.baseDisplaySize),
|
font: Font.regular(presentationData.listsFontSize.baseDisplaySize),
|
||||||
textColor: environment.theme.list.itemPrimaryTextColor
|
textColor: environment.theme.list.itemPrimaryTextColor
|
||||||
)),
|
)),
|
||||||
|
|||||||
@ -2379,6 +2379,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
funds = (amount, amount.currency == .stars ? Int(configuration.channelMessageSuggestionStarsCommissionPermille) : Int(configuration.channelMessageSuggestionTonCommissionPermille))
|
funds = (amount, amount.currency == .stars ? Int(configuration.channelMessageSuggestionStarsCommissionPermille) : Int(configuration.channelMessageSuggestionTonCommissionPermille))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
if "".isEmpty {
|
||||||
|
funds = nil
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
var isAdmin = false
|
var isAdmin = false
|
||||||
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) {
|
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) {
|
||||||
isAdmin = true
|
isAdmin = true
|
||||||
|
|||||||
4
third-party/webrtc/BUILD
vendored
4
third-party/webrtc/BUILD
vendored
@ -3061,7 +3061,7 @@ objc_library(
|
|||||||
"webrtc/rtc_base/system/gcd_helpers.m",
|
"webrtc/rtc_base/system/gcd_helpers.m",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
"-Wno-all",
|
"-w",
|
||||||
"-Ithird-party/webrtc/webrtc/",
|
"-Ithird-party/webrtc/webrtc/",
|
||||||
"-Ithird-party/webrtc/webrtc/sdk/objc",
|
"-Ithird-party/webrtc/webrtc/sdk/objc",
|
||||||
"-Ithird-party/webrtc/webrtc/sdk/objc/base",
|
"-Ithird-party/webrtc/webrtc/sdk/objc/base",
|
||||||
@ -3124,7 +3124,7 @@ objc_library(
|
|||||||
module_name = "webrtc",
|
module_name = "webrtc",
|
||||||
srcs = combined_sources,
|
srcs = combined_sources,
|
||||||
copts = [
|
copts = [
|
||||||
"-Wno-all",
|
"-w",
|
||||||
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/include",
|
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/include",
|
||||||
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/crypto/include",
|
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/crypto/include",
|
||||||
"-Ithird-party/webrtc/libsrtp",
|
"-Ithird-party/webrtc/libsrtp",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user