Overview
Comment: | More validation of server responses |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
71e1a46c8f9d7dbfa9a5fe55fbdb3777 |
User & Date: | js on 2020-10-03 17:20:34 |
Other Links: | manifest | tags |
Context
2020-10-03
| ||
17:23 | Get rid of async prefix check-in: d18fbd29fb user: js tags: trunk | |
17:20 | More validation of server responses check-in: 71e1a46c8f user: js tags: trunk | |
17:08 | Add support for fetching room list check-in: 092c122c69 user: js tags: trunk | |
Changes
Modified src/MTXClient.m from [9f44985428] to [2e0008f3e6].
︙ | |||
94 95 96 97 98 99 100 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | + - - + + + + + + + + | block(nil, exception); return; } OFString *userID = response[@"user_id"]; OFString *deviceID = response[@"device_id"]; OFString *accessToken = response[@"access_token"]; if (![userID isKindOfClass: OFString.class] || |
︙ | |||
214 215 216 217 218 219 220 | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | - + + + + + + + + + + + + + + | [request asyncPerformWithBlock: ^ (mtx_response_t response, int statusCode, id exception) { if (exception != nil) { block(nil, exception); return; } |