Select all messages in a long topic, then deselect the first one, and you will lose your selection

AI 生成的摘要

The forum users discuss a bug where selecting all messages in a topic and then deselecting the first message causes the selection to revert to only the visible messages. The user meglio provides reproduction steps with images showing selecting 100 messages but the selection dropping to 19 messages upon deselecting the first one. User sam asks if this relates to recent changes by zogstrip, who responds that their code isn’t live yet but will be fixed in a specific commit.

Reproduction steps.

Step 1. Open a long topic with > 100 messages:

Step 2. Select ALL messages (use wrench). It will say, e.g. 100 messages selected:

Step 3. De-select the first message. Now it says: 19 messages selected:

I suppose that’s because only 20 messages are loaded initially on the page, and when you deselect one message, there are 19 messages remaining.

Now, if you proceed further and move the messages, only 19 messages will be moved.

4 个赞

@zogstrip is this related to your recent changes ?

Haven’t pushed my code yet. Will make sure it works.

5 个赞

This is fixed in

https://github.com/discourse/discourse/commit/1b4483c9425f9d8dae7a7b298752303bc0165f37

3 个赞

This topic was automatically closed after 3 days. New replies are no longer allowed.