webxdc / store

XDC store, migrated to codeberg
https://codeberg.org/webxdc/store
5 stars 0 forks source link

unrecoverable error on forwarding or save/load #202

Closed r10s closed 1 year ago

r10s commented 1 year ago

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.

unrecoverable

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.

This Webxdc Store
is not connected to a Bot
to get apps from.

To get a working Webxdc Store,
please send "Hi" to
appbot@testrun.org

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)

Septias commented 1 year ago

How do you send an initial message in the same message as the xdc?

r10s commented 1 year ago

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)