Closed r10s closed 1 year ago
How do you send an initial message in the same message as the xdc?
How do you send an initial message in the same message as the xdc?
by calling dc_send_webxdc_status_update()
before the message is actually sent [details]
on andoid/ios, this is used to allow the user to prepare drafts (eg. to set up poll.xdc before sending) (desktop does not have this feature yet)
user will try to forward store.xdc to other users, to saved messages or somewhere. or save/load the xdc.
both methods are known to work with other xdc.
however, with the current store.xdc, user will end up in a state where no apps are shown but "update" is offered and "loading...." is shown, all that, of course, will not work.
to improve the situation, we can show a message if there are no apps at all; usually this state will not happen if used together with a bot as the updates are send directly afterwards.
we can make it even impossible to let the message appear when not connected to a bot: for that, we need to send the updates in the same message as the xdc (which might be a good idea anyways, as it avoids error states)