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

Unread count #42

Merged
merged 4 commits into from Oct 8, 2020
Merged

Unread count #42

merged 4 commits into from Oct 8, 2020

Conversation

chrismatix
Copy link
Contributor

addresses #39


unreadCountTable.toStream()
.peek((conversationId, unreadCountState) -> {
// TODO send to websocket queue
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pending the websocket PR

paulodiniz
paulodiniz previously approved these changes Oct 7, 2020
Copy link
Contributor

@paulodiniz paulodiniz left a comment

Choose a reason for hiding this comment

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

👍 NICE

@NoArgsConstructor
@AllArgsConstructor
public class UnreadCountState implements Serializable {
HashSet<Long> messageSentDates = new HashSet<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Set<Long> for the declaration

Copy link
Contributor

@lucapette lucapette left a comment

Choose a reason for hiding this comment

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

It's good stuff!

@chrismatix chrismatix marked this pull request as ready for review October 8, 2020 07:23
"type": "record",
"fields": [
{"name": "conversationId", "type": "string"},
{"name": "lastReadDate", "type": "long", "logicalType": "timestamp-millis"}
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd call this field readAt(so that it stays in sync with common industry conventions, like sentAt and such)

Copy link
Contributor

@lucapette lucapette left a comment

Choose a reason for hiding this comment

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

First pass! Looking good.... I'm unsure about the current naming (I suggested something) but apart from that I think it's good to go

Copy link
Contributor

@lucapette lucapette left a comment

Choose a reason for hiding this comment

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

:shipit:

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

3 participants