Skip to content

Conversation

@MarcosSpessatto
Copy link
Contributor

No description provided.

message = filterStarred(message, uid);

usernames.add(message.u.username);
if (message.u && message.u.username) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (message.u && message.u.username) {
if (!message.u || !message.u.username) {
return;
}


messages.forEach((message) => {
message.u.name = users[message.u.username];
if (message.u) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (message.u) {
if (!message.u) {
return;
}

@sampaiodiego sampaiodiego changed the title [FIX] chat.syncmessages was returning an error with deleted messages [FIX] REST endpoint chat.syncMessages returning an error with deleted messages Nov 19, 2019
@sampaiodiego sampaiodiego merged commit b918d40 into develop Nov 20, 2019
@sampaiodiego sampaiodiego deleted the fix-chat-syncmessages branch November 20, 2019 00:01
@sampaiodiego sampaiodiego mentioned this pull request Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants