Some notifications have been updated from the old style:
Old API:
Send notification:
[[NSNotificationCenter defaultCenter] postNotificationName:bNotificationName object:Nil];
Listen to notification:
[[NotificationCenter defaultCenter] addObserverForName:bNotificationName
object:Nil
queue:Nil
usingBlock:^(NSNotification * notification) {
dispatch_async(dispatch_get_main_queue(), ^{
});
}];
To the new style:
Send notification:
[BHookNotification notification...: Nil];
Listen to notification:
[BChatSDK.hook addHook:[BHook hook:^(NSDictionary * dict) {
[self reloadData];
}] withNames: @[bHookName]];
This affects the following notifications:
bNotificationThreadDeleted
-> bHookThreadRemoved