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

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

Merged
merged 3 commits into from
Aug 31, 2018

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
@@ -108,12 +125,14 @@ export class HipChatEnterpriseImporter extends Base {
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