From 982a17c0a99f1edd8fddfa35c1703036a2712e3b Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 26 Oct 2020 23:39:10 +0400 Subject: [PATCH] Temporary WatchOS fixes --- .../Watch/App/Base.lproj/Interface.storyboard | 453 +----------------- Telegram/Watch/Extension/TGWatchColor.m | 2 +- 2 files changed, 21 insertions(+), 434 deletions(-) diff --git a/Telegram/Watch/App/Base.lproj/Interface.storyboard b/Telegram/Watch/App/Base.lproj/Interface.storyboard index dc860eb1cc..1aba2ec72a 100644 --- a/Telegram/Watch/App/Base.lproj/Interface.storyboard +++ b/Telegram/Watch/App/Base.lproj/Interface.storyboard @@ -1,12 +1,9 @@ - - - - + + - - - + + @@ -1097,432 +1094,6 @@ contacts found. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2000,4 +1571,20 @@ contacts found. + + + + + + + + + + + + + + + + diff --git a/Telegram/Watch/Extension/TGWatchColor.m b/Telegram/Watch/Extension/TGWatchColor.m index fcbf7d1776..afc4a7e960 100644 --- a/Telegram/Watch/Extension/TGWatchColor.m +++ b/Telegram/Watch/Extension/TGWatchColor.m @@ -38,7 +38,7 @@ + (UIColor *)colorForUserId:(int32_t)userId myUserId:(int32_t)myUserId { - return [self placeholderColors][userId % 7]; + return [self placeholderColors][abs(userId) % 7]; } + (UIColor *)colorForGroupId:(int64_t)groupId