upload: Ensure correct textarea is focused when an upload finishes.
upload: Ensure correct textarea is focused when an upload finishes.

The `uploadFinished` code switches on the composing mode, if we aren't
in the composing mode already. This causes the focus to be incorrect
when this code path runs due to an upload from the message edit
box. This commit fixes that logic to turn on the composing mode or
switches focus to the message edit box, depending on where the upload
was triggered.

timabbott/zulip,punchagan/zulip,zulip/zulip,andersk/zulip,brainwane/zulip,kou/zulip,eeshangarg/zulip,brainwane/zulip,tommyip/zulip,showell/zulip,tommyip/zulip,shubhamdhama/zulip,shubhamdhama/zulip,synicalsyntax/zulip,eeshangarg/zulip,hackerkid/zulip,timabbott/zulip,punchagan/zulip,zulip/zulip,zulip/zulip,andersk/zulip,kou/zulip,kou/zulip,punchagan/zulip,showell/zulip,showell/zulip,showell/zulip,punchagan/zulip,eeshangarg/zulip,timabbott/zulip,andersk/zulip,rishig/zulip,punchagan/zulip,rishig/zulip,eeshangarg/zulip,eeshangarg/zulip,zulip/zulip,hackerkid/zulip,rht/zulip,zulip/zulip,synicalsyntax/zulip,showell/zulip,eeshangarg/zulip,synicalsyntax/zulip,rishig/zulip,shubhamdhama/zulip,brainwane/zulip,tommyip/zulip,hackerkid/zulip,zulip/zulip,tommyip/zulip,timabbott/zulip,timabbott/zulip,andersk/zulip,eeshangarg/zulip,showell/zulip,rishig/zulip,zulip/zulip,hackerkid/zulip,hackerkid/zulip,synicalsyntax/zulip,rishig/zulip,rishig/zulip,tommyip/zulip,punchagan/zulip,rht/zulip,synicalsyntax/zulip,andersk/zulip,rht/zulip,shubhamdhama/zulip,kou/zulip,synicalsyntax/zulip,kou/zulip,rishig/zulip,hackerkid/zulip,timabbott/zulip,kou/zulip,synicalsyntax/zulip,andersk/zulip,showell/zulip,brainwane/zulip,shubhamdhama/zulip,timabbott/zulip,kou/zulip,brainwane/zulip,tommyip/zulip,rht/zulip,brainwane/zulip,andersk/zulip,brainwane/zulip,hackerkid/zulip,rht/zulip,tommyip/zulip,punchagan/zulip,rht/zulip,shubhamdhama/zulip,shubhamdhama/zulip,rht/zulip