Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2021-02-19 15:35:23 +04:00
commit 324f9d76a0
20 changed files with 6 additions and 78 deletions

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -74,10 +74,6 @@
<dict> <dict>
<key>INIntentParameterPromptDialogCustom</key> <key>INIntentParameterPromptDialogCustom</key>
<true/> <true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Search</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>ORCbLf</string>
<key>INIntentParameterPromptDialogType</key> <key>INIntentParameterPromptDialogType</key>
<string>Configuration</string> <string>Configuration</string>
</dict> </dict>

View File

@ -705,8 +705,8 @@ struct ChatRecentActionsEntry: Comparable, Identifiable {
} }
} else if case let .member(_, _, prevAdminRights, _, prevRank) = prev.participant { } else if case let .member(_, _, prevAdminRights, _, prevRank) = prev.participant {
if case let .member(_, _, newAdminRights, _, newRank) = new.participant { if case let .member(_, _, newAdminRights, _, newRank) = new.participant {
let prevFlags = prevAdminRights?.rights.rights ?? [] var prevFlags = prevAdminRights?.rights.rights ?? []
let newFlags = newAdminRights?.rights.rights ?? [] var newFlags = newAdminRights?.rights.rights ?? []
let order: [(TelegramChatAdminRightsFlags, String)] let order: [(TelegramChatAdminRightsFlags, String)]
@ -721,6 +721,8 @@ struct ChatRecentActionsEntry: Comparable, Identifiable {
(.canAddAdmins, self.presentationData.strings.Channel_AdminLog_CanAddAdmins), (.canAddAdmins, self.presentationData.strings.Channel_AdminLog_CanAddAdmins),
(.canManageCalls, self.presentationData.strings.Channel_AdminLog_CanManageCalls) (.canManageCalls, self.presentationData.strings.Channel_AdminLog_CanManageCalls)
] ]
prevFlags = prevFlags.intersection(TelegramChatAdminRightsFlags.broadcastSpecific)
newFlags = newFlags.intersection(TelegramChatAdminRightsFlags.broadcastSpecific)
} else { } else {
order = [ order = [
(.canChangeInfo, self.presentationData.strings.Channel_AdminLog_CanChangeInfo), (.canChangeInfo, self.presentationData.strings.Channel_AdminLog_CanChangeInfo),
@ -732,6 +734,8 @@ struct ChatRecentActionsEntry: Comparable, Identifiable {
(.canAddAdmins, self.presentationData.strings.Channel_AdminLog_CanAddAdmins), (.canAddAdmins, self.presentationData.strings.Channel_AdminLog_CanAddAdmins),
(.canManageCalls, self.presentationData.strings.Channel_AdminLog_CanManageCalls) (.canManageCalls, self.presentationData.strings.Channel_AdminLog_CanManageCalls)
] ]
prevFlags = prevFlags.intersection(TelegramChatAdminRightsFlags.groupSpecific)
newFlags = newFlags.intersection(TelegramChatAdminRightsFlags.groupSpecific)
} }
if prevFlags.isEmpty && newFlags.isEmpty && (prevAdminRights != nil) != (newAdminRights != nil) { if prevFlags.isEmpty && newFlags.isEmpty && (prevAdminRights != nil) != (newAdminRights != nil) {