zulip/zulip-mobile

Allow editing in all types of narrows

Open

#4,671 opened on Apr 17, 2021

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (673 forks)github user discovery
a-compose/sendhelp wanted

Repository metrics

Stars
 (1,348 stars)
PR merge metrics
 (PR metrics pending)

Description

From src/message/messageActionSheet.js:

  if (
    message.sender_id === ownUser.user_id
    // Our "edit message" UI only works in certain kinds of narrows.
    && (isStreamOrTopicNarrow(narrow) || isPmNarrow(narrow))
  ) {
    buttons.push(editMessage);
  }

It would be nice if editing worked in all types of narrows.

I think the easiest solution here is to just narrow to the relevant topic or PM narrow and then show the edit box, but we could also just fix the edit box so it works everywhere.

Contributor guide