Tim Abbott
8d33a62eca
message_util: Avoid unnecessary unreads work processing new messages.
...
It should be very rare to discover new unread messages during a
message_fetch call. This can potentially happen due to races (fetching
just as a new message arrives), but it shouldn't be the common case.
Previously, we would trigger a full rerender of all UI displaying
unread messages every time a bulk message fetch operation returned
(including every time one narrowed), regardless of whether any actual
state had changed.
Fix this by actually checking if we discovered any new unread messages.
2022-10-25 10:53:48 -07:00
..
2022-09-23 12:27:54 -07:00
2022-10-25 10:42:00 -07:00
2022-08-15 19:07:38 -07:00
2022-03-04 12:26:49 -08:00
2022-03-17 13:10:23 -07:00
2022-07-13 16:27:30 -07:00
2022-07-26 17:03:02 -07:00
2022-01-28 17:45:45 -08:00
2022-10-25 10:42:00 -07:00
2022-03-16 12:52:07 -07:00
2022-08-19 12:17:40 -07:00
2022-07-13 16:27:30 -07:00
2022-09-13 11:21:10 -07:00
2022-08-16 13:42:28 -07:00
2022-07-13 16:27:30 -07:00
2022-08-18 12:30:30 -07:00
2021-12-02 15:11:15 -08:00
2022-04-10 19:31:56 -04:00
2022-07-13 16:27:30 -07:00
2022-10-05 11:11:28 -07:00
2022-04-10 19:31:56 -04:00
2022-10-04 11:59:22 -07:00
2022-07-13 16:27:30 -07:00
2022-10-07 11:26:36 -07:00
2022-10-04 11:59:22 -07:00
2022-08-25 11:25:02 -07:00
2021-10-29 16:09:39 -07:00
2022-08-15 12:32:43 -07:00
2022-09-23 12:27:54 -07:00
2022-10-21 15:33:03 -07:00
2022-04-27 22:09:10 -07:00
2022-08-18 12:30:30 -07:00
2022-10-04 12:29:35 -07:00
2022-04-04 13:28:49 -07:00
2022-08-18 08:55:31 -07:00
2022-03-24 08:10:14 -07:00
2021-07-22 09:47:47 -04:00
2021-07-22 09:47:47 -04:00
2022-10-19 16:26:42 -07:00
2022-04-10 19:31:56 -04:00
2022-10-19 16:26:42 -07:00
2022-07-13 16:27:30 -07:00
2022-10-25 10:42:00 -07:00
2021-08-10 13:18:53 -07:00
2022-10-13 23:45:25 -07:00
2022-10-25 10:42:00 -07:00
2022-10-25 10:42:00 -07:00
2022-10-19 12:02:22 -07:00
2022-07-12 17:23:15 -07:00
2022-10-05 11:11:28 -07:00
2022-03-01 18:14:31 -08:00
2022-04-10 19:31:56 -04:00
2022-08-18 16:11:13 -07:00
2022-04-05 12:42:15 +00:00
2022-04-10 19:31:56 -04:00
2022-08-17 16:04:55 -07:00
2022-05-05 13:48:01 -07:00
2022-07-13 16:27:30 -07:00
2022-10-23 20:38:05 -07:00
2022-08-18 12:30:30 -07:00
2022-10-25 10:53:48 -07:00
2022-10-24 10:25:18 -07:00
2022-08-16 14:39:24 -07:00
2022-10-04 11:59:22 -07:00
2022-08-18 12:30:30 -07:00
2022-07-11 11:35:49 -07:00
2022-09-22 08:40:28 -07:00
2022-08-16 14:39:24 -07:00
2022-03-07 21:35:00 -08:00
2022-10-04 11:59:22 -07:00
2022-08-16 14:39:24 -07:00
2022-10-25 10:42:00 -07:00
2022-04-10 19:31:56 -04:00
2022-08-16 14:39:24 -07:00
2022-04-10 19:31:56 -04:00
2021-11-22 15:44:30 -08:00
2022-07-13 16:27:30 -07:00
2022-10-25 10:42:00 -07:00
2022-07-11 11:44:47 -07:00
2022-08-29 17:24:08 -07:00
2022-10-25 10:42:00 -07:00
2022-03-16 12:52:07 -07:00
2022-03-16 12:52:07 -07:00
2022-10-25 10:42:00 -07:00
2022-07-13 16:27:30 -07:00
2022-07-13 16:27:30 -07:00
2021-06-16 12:55:53 -04:00
2022-10-19 16:26:42 -07:00
2021-06-16 12:55:53 -04:00
2022-09-23 10:59:59 -07:00
2022-08-17 16:04:55 -07:00
2022-03-07 21:35:00 -08:00
2022-03-16 12:52:07 -07:00
2022-03-16 12:52:07 -07:00
2022-08-18 11:22:08 -07:00
2022-08-18 11:22:08 -07:00
2022-08-16 13:56:33 -07:00
2022-08-16 14:17:42 -07:00
2022-08-16 14:17:42 -07:00
2022-04-10 19:31:56 -04:00
2022-09-23 12:06:51 -07:00
2021-09-16 15:46:41 -07:00
2021-11-23 10:48:20 -08:00
2021-06-16 12:55:53 -04:00
2022-08-16 14:39:24 -07:00
2022-07-13 16:27:30 -07:00
2022-10-11 10:50:57 -07:00
2022-09-20 17:03:57 -07:00
2022-07-07 14:56:45 -07:00
2022-08-23 17:30:39 -07:00
2022-03-16 12:52:07 -07:00
2022-07-13 16:27:30 -07:00
2022-07-13 16:27:30 -07:00
2022-08-06 21:59:23 -07:00
2022-10-25 10:53:48 -07:00
2022-08-29 12:49:08 -07:00
2022-02-22 16:29:36 -08:00
2022-03-16 12:52:07 -07:00
2022-04-10 19:31:56 -04:00
2022-08-06 21:59:23 -07:00
2022-10-19 16:26:42 -07:00
2021-06-16 12:55:53 -04:00
2022-03-16 12:52:07 -07:00
2021-06-15 12:33:26 -04:00
2022-03-17 13:16:34 -07:00
2022-08-12 15:26:00 -07:00
2022-10-24 10:23:20 -07:00
2022-10-19 16:26:42 -07:00
2022-07-13 16:27:30 -07:00
2022-07-13 16:27:30 -07:00
2022-05-31 10:02:57 -07:00
2021-06-30 16:32:55 -07:00
2022-07-13 16:27:30 -07:00
2022-07-13 16:27:30 -07:00
2022-10-25 10:53:48 -07:00
2022-04-10 19:31:56 -04:00
2022-10-11 10:50:57 -07:00
2022-01-05 14:42:23 -08:00
2022-02-22 16:29:36 -08:00
2022-05-17 14:51:55 -07:00
2022-02-11 13:30:08 -08:00
2022-03-16 12:52:07 -07:00
2022-09-23 12:27:54 -07:00
2022-09-22 08:40:28 -07:00
2022-10-04 11:59:22 -07:00
2022-04-10 19:31:56 -04:00
2022-08-18 08:55:31 -07:00
2022-03-16 12:52:07 -07:00
2022-02-07 18:51:06 -08:00
2022-03-17 13:16:34 -07:00