void Entry::updateChatListSortPosition() { _sortKeyInChatList = useProxyPromotion() ? ProxyPromotedDialogPos() : isPinnedDialog() ? PinnedDialogPos(_pinnedIndex) : DialogPosFromDate(adjustChatListTimeId()); if (needUpdateInChatList()) { setChatListExistence(true); } }
void Entry::updateChatListSortPosition() { if (Auth().supportMode() && _sortKeyInChatList != 0 && Auth().settings().supportFixChatsOrder()) { updateChatListEntry(); return; } _sortKeyInChatList = useProxyPromotion() ? ProxyPromotedDialogPos() : isPinnedDialog() ? PinnedDialogPos(_pinnedIndex) : DialogPosFromDate(adjustChatListTimeId()); if (needUpdateInChatList()) { setChatListExistence(true); } }