Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The icon of new comment in the share is missing #12027

Closed
plyaskin opened this issue Oct 25, 2018 · 7 comments
Closed

The icon of new comment in the share is missing #12027

plyaskin opened this issue Oct 25, 2018 · 7 comments

Comments

@plyaskin
Copy link

plyaskin commented Oct 25, 2018

Hi,
Could you add the icon of new comments in the shares?
Also the icon is missing anywhere at the recipient if the folder was shared.

  1. Add a recipient to the shares
  2. To comment from the sender. The sender is have, the recipient is not.
    image
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2277 (Sharing icon seems missing), #10877 (Comment icon is not shown on shared folder), #10583 (Icon "confirm-white" is missing), #10886 (NC14 RC1: unread comments icon with the Share User unvisible), and #4218 (Missing audio icon).

@skjnldsv
Copy link
Member

@plyaskin Hey!
I'm not sure I get what you mean, the icon is shown when we have an unread comment, you want to add it all the time, having unread comment or not?

@rullzer
Copy link
Member

rullzer commented Nov 22, 2018

@skjnldsv I could reproduce this (at least on master).

  1. userA shares a folder to userB
  2. userA adds a comment
  3. userB refreses sees no comment
  4. userB adds a comment
  5. userA refresesh sees no comment

I could get it to show once. But in general it is not visible properly.

@skjnldsv
Copy link
Member

@rullzer grid view?

@rullzer
Copy link
Member

rullzer commented Nov 22, 2018

List view

@skjnldsv skjnldsv self-assigned this Dec 4, 2018
@skjnldsv skjnldsv added this to the Nextcloud 15.0.1 milestone Dec 4, 2018
@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2018

  1. Create a folder as User0: ID is 198
  2. Add comment as User0
  3. Share folder to User1
  4. As User1 check files: see folder. ID is 198

On load

User0 getNumberOfUnreadCommentsForFolder request the node ID 2
User1 getNumberOfUnreadCommentsForFolder request the node ID 191
🤔 First issue, we don't request the same ID

On the filecache database

The folder id is properly defined to 198, we also have a parent column which is set to 2
This is why it only works in a single direction, if User1 post a comment, User0 will have the icon, not the other way around

The getNumberOfUnreadCommentsForFolder join the comment table on the parent id (wtf is this?)

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2018

More input, I get it now, we get all the unread comments of the content of the parent directory. Make sense.
Then this is the issue. The parent directory of the User1 is not the same as User0, therefore we cannot get the unread count! @rullzer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@rullzer @MorrisJobke @plyaskin @skjnldsv @nextcloud-bot and others