mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fixed usage time being always send as 0 instead of sending the actual usage time
This commit is contained in:
parent
80e6cd6d16
commit
f3ea32ea7f
@ -280,7 +280,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
}
|
||||
|
||||
- (NSString *)currentUsageString {
|
||||
double currentUsageTime = [[NSUserDefaults standardUserDefaults] doubleForKey:kBITUpdateUsageTimeOfCurrentVersion];
|
||||
double currentUsageTime = [self.currentAppVersionUsageTime doubleValue];
|
||||
|
||||
if (currentUsageTime > 0) {
|
||||
// round (up) to 1 minute
|
||||
|
Loading…
x
Reference in New Issue
Block a user