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

Add isreadby isread methods to message model #7

Merged
merged 8 commits into from
Dec 7, 2022

Conversation

wesleymartincc
Copy link

Added some helpful methods to the Messages and Conversation models.

Message:

  • isReadBy
  • isRead

Conversation:

  • unreadBy

Updated the testing to have Unit tests along with the Feature tests.

@wesleymartincc wesleymartincc linked an issue Dec 7, 2022 that may be closed by this pull request
}
}

public function testUnreadBy()

Choose a reason for hiding this comment

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

Suggested change
public function testUnreadBy()
public function testUnreadBy(): void

Comment on lines 13 to 19
private string $senderId;

private array $messages;

private Message $message1;

private Message $message2;

Choose a reason for hiding this comment

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

extra spacing is not really required.. lets trim it down.

Suggested change
private string $senderId;
private array $messages;
private Message $message1;
private Message $message2;
private string $senderId;
private array $messages;
private Message $message1;
private Message $message2;

Copy link
Author

Choose a reason for hiding this comment

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

This is how it is formatted in the other files, that's why I added it here. But completely agree it looks better without spaces.

Copy link

@BinaryKitten BinaryKitten left a comment

Choose a reason for hiding this comment

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

minor changes but elsewise good :)

@BinaryKitten BinaryKitten merged commit 32ec6b6 into master Dec 7, 2022
@BinaryKitten BinaryKitten deleted the add-isreadby-isread-methods-to-message-model branch December 7, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add isReadBy, isRead methods to Message model
2 participants