Differences From Artifact [e5d8332c51]:
- File tests/tests.m — part of check-in [092c122c69] at 2020-10-03 17:08:07 on branch trunk — Add support for fetching room list (user: js, size: 2765) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
61 62 63 64 65 66 67 | [self fetchRoomList]; }]; } - (void)fetchRoomList { | | | | | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | [self fetchRoomList]; }]; } - (void)fetchRoomList { [_client fetchRoomListWithBlock: ^ (OFArray<OFString *> *rooms, id exception) { if (exception != nil) { of_log(@"Failed to fetch room list: %@", exception); [OFApplication terminateWithStatus: 1]; } of_log(@"Fetched room list: %@", rooms); [self logOut]; }]; } - (void)logOut { [_client logOutWithBlock: ^ (id exception) { if (exception != nil) { of_log(@"Failed to log out: %@\n", exception); [OFApplication terminateWithStatus: 1]; } of_log(@"Logged out client"); |
︙ | ︙ |