deltachat-ios
deltachat-ios copied to clipboard
switch accounts if nececssary for direct share shortcuts
part of #1703
not yet implemented: UI changes. We could add the account avatar to the navigation bar, e.g. left of the cancel button or left of the send button (maybe that get's more attention, before the user hits the send button). We can also add another row to the bottom showing the account name there (unfortunately but without an icon using the basic iOS share framework) and could give an option to switch accounts there. That might become especially useful in case the user didn't select a direct share shortcut, but the general delta chat share icon. Opinions welcome :)
left of the cancel button
+1, for consistency with the main app where the account-self-avatar is also shown topmost left. but that can also go to another pr.
added icon:
I really like the idea of being able to switch accounts when sharing. Maybe it would look better if the avatar is placed in the middle between "Cancel" and "Send"? However, if it should be to the left, iMessage could perhaps be an example. The top left corner is blank in the iMessage share screen. The avatar could be displayed here. This design is probably more complex to implement. I created a mockup screenshot for both options.
Avatar in the middle:
Share screen derived from iMessage:
@r10s Let's get that in. It fixes a bug in context of multi-account and gives additionally a hint from which account the message is going to be shared. Further improvements wrt. to UI can be done in a subsequent PR.
We can proceed with another PR