Differences From Artifact [a0b40aeb42]:
- File
tests/tests.m
— part of check-in
[d18fbd29fb]
at
2020-10-03 17:23:45
on branch trunk
— Get rid of async prefix
All operations are async anyway. (user: js, size: 2768) [annotate] [blame] [check-ins using]
To Artifact [8b2bd0de5e]:
- File tests/tests.m — part of check-in [b1d8afb546] at 2020-10-03 17:40:47 on branch trunk — Add support for joining rooms (user: js, size: 3062) [annotate] [blame] [check-ins using]
︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | + + + + + + + + + + + + + + + | if (exception != nil) { of_log(@"Failed to fetch room list: %@", exception); [OFApplication terminateWithStatus: 1]; } of_log(@"Fetched room list: %@", rooms); [self joinRoom]; }]; } - (void)joinRoom { [_client joinRoom: @"#test:nil.im" block: ^ (OFString *roomID, id exception) { if (exception != nil) { of_log(@"Failed to join room: %@", exception); [OFApplication terminateWithStatus: 1]; } of_log(@"Joined room %@", roomID); [self logOut]; }]; } - (void)logOut { [_client logOutWithBlock: ^ (id exception) { |
︙ |