From f6467778e058b20b2c197036e2368fed5b3dc5b6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 10 Sep 2015 13:49:50 -0700 Subject: [PATCH] Send changes_available() even if autorefresh is enabled --- shared_realm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared_realm.cpp b/shared_realm.cpp index 9fe02a0a..8b003d30 100644 --- a/shared_realm.cpp +++ b/shared_realm.cpp @@ -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()); @@ -327,9 +330,6 @@ void Realm::notify() m_delegate->did_change({}, {}); } } - else if (m_delegate) { - m_delegate->changes_available(); - } } }