Skip to content

Chat improvements: read receipts, ractions, presence, and conversation memberships#23

Open
jakub-grzesiowski wants to merge 6 commits intomasterfrom
conversations-membership-data
Open

Chat improvements: read receipts, ractions, presence, and conversation memberships#23
jakub-grzesiowski wants to merge 6 commits intomasterfrom
conversations-membership-data

Conversation

@jakub-grzesiowski
Copy link
Contributor

No description provided.

Message readMessage = null;
someChannel.OnMessageReceived += message =>
{
if (message.MessageText == "READ MEEEE")

Choose a reason for hiding this comment

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

What about extracting "READ MEEEE" to variable and reused below in line

await someChannel.SendText("READ MEEEE");

/// <returns>A ChatOperationResult containing the created channel wrapper with channel and membership information.</returns>
public async Task<ChatOperationResult<CreatedChannelWrapper>> CreateGroupConversation(List<User> users, string channelId = "",
ChatChannelData? channelData = null, ChatMembershipData? membershipData = null)
ChatChannelData? channelData = null, ChatMembershipData? hostMembershipData = null, ChatMembershipData? inviteeMembershipData = null)

Choose a reason for hiding this comment

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

Is this desired for
ChatMembershipData? inviteeMembershipData = null
to be singular not plural?

{
return result;
}
if (getMembers.Result.Memberships?[0] != null)

Choose a reason for hiding this comment

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

Shouldn't be:
if (getMembers.Result.Memberships != null && getMembers.Result.Memberships.Count > 0)

{
return result;
}
if (getMembers.Result.Memberships?[0] != null)

Choose a reason for hiding this comment

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

Shouldn't be:
if (getMembers.Result.Memberships != null && getMembers.Result.Memberships.Count > 0)
?

@pubnub-ops-terraform
Copy link
Contributor

pubnub-ops-terraform commented Jan 22, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

3 participants