mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-02 17:53:55 +00:00
fix for unregistering notifications in a notification
This commit is contained in:
parent
85c655a91c
commit
3e37795d62
@ -120,7 +120,8 @@ class RealmDelegate : public BindingContext {
|
||||
arguments[0] = realm_object;
|
||||
arguments[1] = Value::from_string(m_context, notification_name);
|
||||
|
||||
for (auto &callback : m_notifications) {
|
||||
std::list<Protected<FunctionType>> notifications_copy(m_notifications);
|
||||
for (auto &callback : notifications_copy) {
|
||||
Function<T>::call(m_context, callback, realm_object, 2, arguments);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user