mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Hide bot in suggestions list
This commit is contained in:
parent
44fe90b317
commit
f4d9e3325e
@ -3519,7 +3519,14 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
|||||||
var result: [ChatListRecentEntry] = []
|
var result: [ChatListRecentEntry] = []
|
||||||
var existingIds = Set<PeerId>()
|
var existingIds = Set<PeerId>()
|
||||||
|
|
||||||
|
// MARK: Swiftgram
|
||||||
|
// Hidding SwiftgramBot from recents so it won't annoy people. Ideally we should call removeRecentlyUsedApp, so it won't annoy users in other apps
|
||||||
|
let skipId = 5846791198
|
||||||
|
|
||||||
for id in localApps.peerIds {
|
for id in localApps.peerIds {
|
||||||
|
if id.id._internalGetInt64Value() == skipId {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if existingIds.contains(id) {
|
if existingIds.contains(id) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -3559,6 +3566,9 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
|||||||
}
|
}
|
||||||
if let remoteApps {
|
if let remoteApps {
|
||||||
for appPeerId in remoteApps {
|
for appPeerId in remoteApps {
|
||||||
|
if appPeerId.id._internalGetInt64Value() == skipId {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if existingIds.contains(appPeerId) {
|
if existingIds.contains(appPeerId) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user