diff options
Diffstat (limited to 'webapp/utils/post_utils.jsx')
-rw-r--r-- | webapp/utils/post_utils.jsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webapp/utils/post_utils.jsx b/webapp/utils/post_utils.jsx index 991c8fbec..a71aeef31 100644 --- a/webapp/utils/post_utils.jsx +++ b/webapp/utils/post_utils.jsx @@ -82,3 +82,23 @@ export function canEditPost(post, editDisableAction) { } return canEdit; } + +export function shouldShowDotMenu(post) { + if (Utils.isMobile()) { + return true; + } + + if (!isSystemMessage(post)) { + return true; + } + + if (canDeletePost(post)) { + return true; + } + + if (canEditPost(post)) { + return true; + } + + return false; +} |