Skip to content

[FIX] Hipchat import was failing when importing messages from a non existent user#11892

Merged
sampaiodiego merged 3 commits intodevelopfrom
hipchat-import
Aug 31, 2018
Merged

[FIX] Hipchat import was failing when importing messages from a non existent user#11892
sampaiodiego merged 3 commits intodevelopfrom
hipchat-import

Conversation

@rodrigok
Copy link
Member

No description provided.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-11892 August 28, 2018 17:36 Inactive
@rodrigok rodrigok temporarily deployed to rocket-chat-pr-11892 August 28, 2018 17:38 Inactive
ts: new Date(m.UserMessage.timestamp.split(' ')[0]),
});
} else if (m.NotificationMessage) {
const text = m.NotificationMessage.message.indexOf('/me ') === -1 ? m.NotificationMessage.message : `${ m.NotificationMessage.message.replace(/\/me /, '_') }_`;
Copy link
Member

Choose a reason for hiding this comment

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

this will replace any /me text and not only the slash command (which starts with /me) but since this what was done before, we can improve it later

@sampaiodiego sampaiodiego changed the title [FIX] Hipchat import was failing when importing messages of an non existent user [FIX] Hipchat import was failing when importing messages from a non existent user Aug 31, 2018
@sampaiodiego sampaiodiego merged commit 9b85d0f into develop Aug 31, 2018
@sampaiodiego sampaiodiego deleted the hipchat-import branch August 31, 2018 18:40
@sampaiodiego sampaiodiego mentioned this pull request Aug 31, 2018
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

Comments