LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.16k stars 166 forks source link

Comments with a mention to yourself get duplicated into the Comments section when they shouldn't. #1438

Closed Asudox closed 6 months ago

Asudox commented 6 months ago

Jerboa Version

0.0.61

Android Version + Phone

Android 14, Google Pixel 8 Pro

Describe The Bug

Using the web version of Lemmy, comments with mentions don't get put into the Comments section in Inbox, but only in the Mentions section. In Jerboa, however, the comment entry in the Mentions section gets duplicated into the Comments section.

To Reproduce

  1. Receive a comment with a mention to yourself
  2. See the same comment entry in the Comments section and the Mentions section

In the case of a crash or when relevant include the logs

No response

MV-GH commented 6 months ago

@dessalines Does lemmy-ui have special behaviour for this?

dessalines commented 6 months ago

No, it also duplicates them, since a row is inserted in the person_mention table, and the API comes back with both. Its really a back-end bug, so I'll move it there.