Unexpected interaction between `On group messages publish group read state` and whisper posts

In a group message with a group which,

  • Has On group messages publish group read state checked, and
  • Is in whispers allowed groups

A whisper post will show the number of group members who have seen the post,

Screenshot from 2024-08-12 10-55-39

but clicking on the UI element to display which members have viewed the post does nothing.

image

In the background there is an XHR request made,

curl '{{base_url}}/post_readers?id={{post_id}}' 

which returns,

{"post_readers":[]}

rather than the expected list of post_readers.

As one of the expected use-cases of this combination of features is to discuss “Something else” flags privately in the same topic as the user who raised the flag and being able to track who has read which posts, and I cannot imagine a use case where publishing the read count but not the identities of readers in a ‘publish read state’ group on a whisper post would be desired, I believe this to be a bug in the implementation of publishing group read state when the post is a whisper.

Discourse version: 3.4.0.beta1-dev