-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add xstore contact to every account #6096
base: main
Are you sure you want to change the base?
Conversation
inc_and_check(&mut migration_version, 124)?; | ||
if dbversion < migration_version { | ||
sql.execute_migration( | ||
"INSERT INTO contacts (name, addr, origin, authname, is_bot) VALUES ('xstore', 'xstore@testrun.org', 67108864, '', true);", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does origin 6710886 mean?
Also the tests fail and I'm not sure how useful is the contact without a key. One idea to fix this was to have an API to import vCard and mark imported contacts as verified, then import this from the UI side rather than with migration so ArcaneChat can import other bots as well and we don't hardcode xstore into the core. |
I thought the latest idea was to let the bot die because it was buggy or sth. and integrate a "store" directly into the attachment menu. Did something change? |
even if we go for something else, I would not say that just because something "is buggy" the better solution is to let it die and build something similar from scratch and hope the new iteration would have no bugs!?
that said, the UI that the bot has is even more ready than the one in the web version we have and it just needs some improvements, if making the whole thing from scratch would be simpler and produce a more simple and maintainable code base I don't know, but the best would be if any UI that we decide to use could work both as a web site and as a webxdc, that could be used by the existing bot and by Delta Chat clients as integrations for the clients that don't want to just download the json metadata and implement native UI for the app picker, similar to how the bots index is a bot and a website at the same time with the same code more back to present time: the question is what is easier? just add the store bot so users can access mini-apps in the mean time or add the new picker in a few hours?? the picker would need some time, and in the meantime it is good that the users can use the xstore bot at least |
xstore works fine and gets updates automatically, and accessing it via email without direct HTTP requests is useful. We don't even have the store in the attachment menu now. But anyway, the original issue is about adding "invite link" because it should result into sending the message back immediately when you scan the QR code. Having a contact "xstore" in the contact list without any explanation that has empty chat does not help, users will likely not write to such bot first. |
I did not say that this was my opinion, just what I heard from holger. my question was if consensus changed / what the current consensus is. now back to the topic -> don't call it x-store, people will not understand that name, it's name should be more descriptive and less technical.
device message or fake contact list item in the UI? or sth. else? |
exactly keeping updates would be then needed to be done by the client pinging some random website to fetch metadata, the website could be blocked and if we use github link that would count as anti-feature depending in non-free network
+1 I really don't like the xstore name, also the bot doesn't even has a nice display name |
I think it still helps to have the contact added (with avatar and all) what about this solution that would not require any UI changes: |
can't we just hardcode the initial current public key / peerstate for the x store bot? |
|
after initial installation, the device chat is for importing onboarding information eg. how to get in contact with others. we do not want to clutter this chat with too many information - this is also the reason, we do not add a "changes" device message there after initial installation. therefore, an entry in the contact list is much less cluttering ui and distracting; it also feels quite natural, and it is also okay, if the user does not discover it in the first minutes. let's better stay with that idea 1 Footnotes
|
I think giving the contact a proper display name like "Deltachat Apps" or something more descriptive together with a chat that has the xstore icon and a status explaining the contact should make the use already quite obvious for an unknowing user. |
Still, i think hardcoding such things at Core level isn't good, i'd prefer to add some API for this, maybe even put a bot vCard to the core repo, but it should be integrated at the apps' level. E.g. we don't have Secondly, it should be clear to the user that this bot isn't just one more verified contact, it should be highlighted somehow. Otherwise i can name myself "xstore bot" and i won't be much different from the real bot for my contacts. Though the same problem already exists for "Saved Messages" and "Device Messages", so it's not critical. |
If I see it correctly, the sentiment is that we generally want the bot contact but it should also have the icon. Maybe we can even add some explanatory message to the chat preemptively. Other than that we want QR codes that when scanned directly put you in a chat with the requested app. I would put that to a follow up PR |
This PR adds a database migration that creates the xstore contact for every account. New accounts are affected as well as already existing accounts.
closes #5855