Skip to content

Commit

Permalink
Send changes_available() even if autorefresh is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Sep 10, 2015
1 parent 21d32bf commit f646777
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared_realm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ void Realm::notify()
verify_thread();

if (m_shared_group->has_changed()) { // Throws
if (m_delegate) {
m_delegate->changes_available();
}
if (m_auto_refresh) {
if (m_group) {
transaction::advance(*m_shared_group, *m_history, m_delegate.get());
Expand All @@ -327,9 +330,6 @@ void Realm::notify()
m_delegate->did_change({}, {});
}
}
else if (m_delegate) {
m_delegate->changes_available();
}
}
}

Expand Down

0 comments on commit f646777

Please sign in to comment.