2021-07-17 11:15:40 +02:00
|
|
|
# Manual checks
|
|
|
|
## After every merge
|
2021-08-24 00:53:49 +02:00
|
|
|
1. Find if any `get_channel_difference` has been added to `MessagesManager.cpp`, and replace it with `delayed_get_channel_difference`.
|
2021-07-17 11:15:40 +02:00
|
|
|
|
|
|
|
### Example
|
|
|
|
The following line
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
get_channel_difference(dialog_id, old_pts, true, "add_pending_channel_update pts mismatch");
|
|
|
|
```
|
|
|
|
|
|
|
|
should become
|
|
|
|
|
|
|
|
```cpp
|
2021-09-10 15:47:26 +02:00
|
|
|
auto enable_reactive_channel_difference
|
2021-07-17 11:15:40 +02:00
|
|
|
= G()->shared_config()
|
2021-09-10 15:47:26 +02:00
|
|
|
.get_option_boolean("enable_reactive_channel_difference", false);
|
2021-07-17 11:15:40 +02:00
|
|
|
|
|
|
|
get_channel_difference_delayed(dialog_id, old_pts, true,
|
2021-09-10 15:47:26 +02:00
|
|
|
enable_reactive_channel_difference,
|
2021-07-17 11:15:40 +02:00
|
|
|
"add_pending_channel_update pts mismatch");
|
|
|
|
```
|
2021-08-24 00:53:49 +02:00
|
|
|
|
|
|
|
2. Find `make_unique<Dialog>` and check if there's `d.set_time()` after.
|