Skip to content

Latest commit

 

History

History
executable file
·
47 lines (30 loc) · 1.06 KB

v4.11.2 Update Guide.md

File metadata and controls

executable file
·
47 lines (30 loc) · 1.06 KB

Updating from 4.11.1 to 4.11.2

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