Skip to content

Commit

Permalink
fix(#25478): Display edit button right after sending message
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias4217 committed Jun 2, 2022
1 parent d24789a commit f6d0212
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Meteor.startup(async function () {
if (msgTs != null) {
currentTsDiff = moment().diff(msgTs, 'minutes');
}
return !!currentTsDiff && currentTsDiff < blockEditInMinutes;
return (!!currentTsDiff || currentTsDiff === 0) && currentTsDiff < blockEditInMinutes;
}
return true;
},
Expand Down

0 comments on commit f6d0212

Please sign in to comment.