fix: sometimes most recent contacts list wasn't used
`ndb::poll_for_notes` appears to give notes as they arrive. We need to make sure we only use the most recent for contacts Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -601,6 +601,7 @@ pub fn fetch_contact_list(
|
||||
ContactState::Received {
|
||||
contacts: _,
|
||||
note_key: _,
|
||||
timestamp: _,
|
||||
} => FilterState::GotRemote(filter::GotRemoteType::Contact),
|
||||
};
|
||||
|
||||
@@ -718,6 +719,7 @@ pub fn is_timeline_ready(
|
||||
let ContactState::Received {
|
||||
contacts: _,
|
||||
note_key,
|
||||
timestamp: _,
|
||||
} = accounts.get_selected_account().data.contacts.get_state()
|
||||
else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user