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
6f27eb10
Commit
6f27eb10
authored
9 years ago
by
Gabriel Engel
Browse files
Options
Downloads
Plain Diff
Merge pull request #2073 from wicked539/develop
Closes #1981; Message edit mode remains after deleting the message
parents
cd829c3f
9bbc8d84
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-lib/client/MessageAction.coffee
+2
-0
2 additions, 0 deletions
packages/rocketchat-lib/client/MessageAction.coffee
with
2 additions
and
0 deletions
packages/rocketchat-lib/client/MessageAction.coffee
+
2
−
0
View file @
6f27eb10
...
@@ -113,6 +113,8 @@ Meteor.startup ->
...
@@ -113,6 +113,8 @@ Meteor.startup ->
timer
:
1000
timer
:
1000
showConfirmButton
:
false
showConfirmButton
:
false
if
chatMessages
[
Session
.
get
(
'openedRoom'
)].
editing
.
id
is
message
.
_id
chatMessages
[
Session
.
get
(
'openedRoom'
)].
clearEditing
(
message
)
chatMessages
[
Session
.
get
(
'openedRoom'
)].
deleteMsg
(
message
)
chatMessages
[
Session
.
get
(
'openedRoom'
)].
deleteMsg
(
message
)
validation
:
(
message
)
->
validation
:
(
message
)
->
return
RocketChat
.
authz
.
hasAtLeastOnePermission
(
'delete-message'
,
message
.
rid
)
or
RocketChat
.
settings
.
get
(
'Message_AllowDeleting'
)
and
message
.
u
?
.
_id
is
Meteor
.
userId
()
return
RocketChat
.
authz
.
hasAtLeastOnePermission
(
'delete-message'
,
message
.
rid
)
or
RocketChat
.
settings
.
get
(
'Message_AllowDeleting'
)
and
message
.
u
?
.
_id
is
Meteor
.
userId
()
...
...
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