Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
8743ee00
Commit
8743ee00
authored
9 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
fix "topic changed" messages with incorrect timestamp
parent
9f2b1738
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-importer-slack/server/SlackImporter.coffee
+2
-2
2 additions, 2 deletions
...ges/rocketchat-importer-slack/server/SlackImporter.coffee
with
2 additions
and
2 deletions
packages/rocketchat-importer-slack/server/SlackImporter.coffee
+
2
−
2
View file @
8743ee00
...
...
@@ -219,9 +219,9 @@ Importer.Slack = class Importer.Slack extends Importer.Base
RocketChat
.
sendMessage
botUser
,
msgObj
,
room
else
if
message
.
subtype
is
'channel_purpose'
RocketChat
.
models
.
Messages
.
createRoomSettingsChangedWithTypeRoomIdMessageAndUser
'room_changed_topic'
,
room
.
_id
,
message
.
purpose
,
@
getRocketUser
(
message
.
user
)
RocketChat
.
models
.
Messages
.
createRoomSettingsChangedWithTypeRoomIdMessageAndUser
'room_changed_topic'
,
room
.
_id
,
message
.
purpose
,
@
getRocketUser
(
message
.
user
)
,
{
ts
:
new
Date
(
parseInt
(
message
.
ts
.
split
(
'.'
)[
0
])
*
1000
)
}
else
if
message
.
subtype
is
'channel_topic'
RocketChat
.
models
.
Messages
.
createRoomSettingsChangedWithTypeRoomIdMessageAndUser
'room_changed_topic'
,
room
.
_id
,
message
.
topic
,
@
getRocketUser
(
message
.
user
)
RocketChat
.
models
.
Messages
.
createRoomSettingsChangedWithTypeRoomIdMessageAndUser
'room_changed_topic'
,
room
.
_id
,
message
.
topic
,
@
getRocketUser
(
message
.
user
)
,
{
ts
:
new
Date
(
parseInt
(
message
.
ts
.
split
(
'.'
)[
0
])
*
1000
)
}
else
if
message
.
subtype
is
'file_share'
&&
message
.
file
.
url_private_download
isnt
undefined
details
=
name
:
message
.
file
.
name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment