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

bruig: Add last read marker #137

Merged
merged 3 commits into from Feb 23, 2023
Merged

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Feb 17, 2023

This also adds a check to see if the previous message was sent/received by the same user. If so don't show the avatar and listed username in the message.

Copy link
Collaborator

@miki-totefu miki-totefu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chatModel has unreadMsgCount. could you use that instead of adding a synth event that gets dropped at some point? the unreadMsgCount should give you enough info to know where to draw the line

_msgs.add(ChatEventModel(event, null));
}
}
if (_msgs[_msgs.length - 1].source?.nick == msg.source?.nick) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use nicks for this, use the ids (nicks could change, we could allow same nicks for different users, different nicks for same user based on context, ...)

@miki-totefu miki-totefu merged commit 02aa305 into companyzero:master Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants