Commit 781de46
committed
WIP: api!: add
In Delta Chat desktop we show the 3 recently used WebXDC apps,
which relies on `get_chat_media`, which is quite expensive.
Hopefully adding `LIMIT 3` makes it faster.
Marking this as a breaking change
because it's breaking TypeScript-wise,
but shouldn't be breaking behavior-wise,
because not providing the argument in JSON-RPC
should be equivalent to providing `null`
(which gets converted to `None`).
TODO:
- [ ] Add to CFFI?
- [ ] Docs. Both the core fn and the JSON-RPC.LIMIT arg to get_chat_media
1 parent fc81cef commit 781de46
File tree
5 files changed
+64
-5
lines changed- deltachat-ffi/src
- deltachat-jsonrpc/src
- deltachat-repl/src
- src
- chat
5 files changed
+64
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
| 1535 | + | |
1535 | 1536 | | |
1536 | 1537 | | |
1537 | 1538 | | |
| |||
1551 | 1552 | | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | | - | |
| 1555 | + | |
1555 | 1556 | | |
1556 | 1557 | | |
1557 | 1558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
| 1737 | + | |
1737 | 1738 | | |
1738 | 1739 | | |
1739 | 1740 | | |
| |||
1745 | 1746 | | |
1746 | 1747 | | |
1747 | 1748 | | |
1748 | | - | |
| 1749 | + | |
| 1750 | + | |
1749 | 1751 | | |
1750 | 1752 | | |
1751 | 1753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| 1019 | + | |
1019 | 1020 | | |
1020 | 1021 | | |
1021 | 1022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3292 | 3292 | | |
3293 | 3293 | | |
3294 | 3294 | | |
| 3295 | + | |
3295 | 3296 | | |
3296 | 3297 | | |
3297 | 3298 | | |
| |||
3306 | 3307 | | |
3307 | 3308 | | |
3308 | 3309 | | |
3309 | | - | |
| 3310 | + | |
| 3311 | + | |
3310 | 3312 | | |
3311 | 3313 | | |
3312 | 3314 | | |
3313 | 3315 | | |
3314 | 3316 | | |
| 3317 | + | |
3315 | 3318 | | |
3316 | 3319 | | |
3317 | 3320 | | |
| |||
3327 | 3330 | | |
3328 | 3331 | | |
3329 | 3332 | | |
3330 | | - | |
| 3333 | + | |
| 3334 | + | |
3331 | 3335 | | |
3332 | 3336 | | |
3333 | 3337 | | |
| |||
3343 | 3347 | | |
3344 | 3348 | | |
3345 | 3349 | | |
| 3350 | + | |
3346 | 3351 | | |
3347 | 3352 | | |
3348 | 3353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3189 | 3189 | | |
3190 | 3190 | | |
3191 | 3191 | | |
3192 | | - | |
| 3192 | + | |
| 3193 | + | |
3193 | 3194 | | |
3194 | 3195 | | |
3195 | 3196 | | |
| |||
3250 | 3251 | | |
3251 | 3252 | | |
3252 | 3253 | | |
| 3254 | + | |
3253 | 3255 | | |
3254 | 3256 | | |
3255 | 3257 | | |
| |||
3262 | 3264 | | |
3263 | 3265 | | |
3264 | 3266 | | |
| 3267 | + | |
3265 | 3268 | | |
3266 | 3269 | | |
3267 | 3270 | | |
| |||
3274 | 3277 | | |
3275 | 3278 | | |
3276 | 3279 | | |
| 3280 | + | |
3277 | 3281 | | |
3278 | 3282 | | |
3279 | 3283 | | |
3280 | 3284 | | |
3281 | 3285 | | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
3282 | 3299 | | |
3283 | 3300 | | |
3284 | 3301 | | |
3285 | 3302 | | |
3286 | 3303 | | |
3287 | 3304 | | |
3288 | 3305 | | |
| 3306 | + | |
3289 | 3307 | | |
3290 | 3308 | | |
3291 | 3309 | | |
| |||
3298 | 3316 | | |
3299 | 3317 | | |
3300 | 3318 | | |
| 3319 | + | |
3301 | 3320 | | |
3302 | 3321 | | |
3303 | 3322 | | |
| |||
3310 | 3329 | | |
3311 | 3330 | | |
3312 | 3331 | | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
3313 | 3359 | | |
3314 | 3360 | | |
3315 | 3361 | | |
| |||
3322 | 3368 | | |
3323 | 3369 | | |
3324 | 3370 | | |
| 3371 | + | |
3325 | 3372 | | |
3326 | 3373 | | |
3327 | 3374 | | |
| |||
3337 | 3384 | | |
3338 | 3385 | | |
3339 | 3386 | | |
| 3387 | + | |
3340 | 3388 | | |
3341 | 3389 | | |
3342 | 3390 | | |
| |||
3378 | 3426 | | |
3379 | 3427 | | |
3380 | 3428 | | |
| 3429 | + | |
3381 | 3430 | | |
3382 | 3431 | | |
3383 | 3432 | | |
| |||
3393 | 3442 | | |
3394 | 3443 | | |
3395 | 3444 | | |
| 3445 | + | |
3396 | 3446 | | |
3397 | 3447 | | |
3398 | 3448 | | |
| |||
0 commit comments