mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Backport the groupInfo attempted fix
This commit is contained in:
parent
3eedd075a9
commit
9cf0acaf38
@ -20,11 +20,11 @@ private enum AdjacentEntryGroupInfo {
|
|||||||
|
|
||||||
private func getAdjacentEntryGroupInfo(_ entry: IntermediateMessageHistoryEntry?, key: Int64) -> (IntermediateMessageHistoryEntry?, AdjacentEntryGroupInfo) {
|
private func getAdjacentEntryGroupInfo(_ entry: IntermediateMessageHistoryEntry?, key: Int64) -> (IntermediateMessageHistoryEntry?, AdjacentEntryGroupInfo) {
|
||||||
if let entry = entry {
|
if let entry = entry {
|
||||||
if let groupingKey = entry.message.groupingKey {
|
if let groupingKey = entry.message.groupingKey, let groupInfo = entry.message.groupInfo {
|
||||||
if groupingKey == key {
|
if groupingKey == key {
|
||||||
return (entry, .sameGroup(entry.message.groupInfo!))
|
return (entry, .sameGroup(groupInfo))
|
||||||
} else {
|
} else {
|
||||||
return (entry, .otherGroup(entry.message.groupInfo!))
|
return (entry, .otherGroup(groupInfo))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (entry, .none)
|
return (entry, .none)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user