Add PrimaryIdentity() to App #130
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#130
Loading…
Reference in New Issue
No description provided.
Delete Branch "identity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It was getting annoying looping through all available peers even though I knew there was only one. This treats the first discovered profile as the primary profile.
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/165
i don't really love the assumptions this adds to app tho, that there is a thing as a primary identity, it's not settable. we technically support multiple passwords, this is password order dependant
how often were you having to loop? couldn't you just store the onion for access via Get() ? or is this on load in some places? what about
seems like either we should consider a change to List to return onion:profile instead of onion:name
or just a list of onions so you could
app.GetPeer(app.List()[0])
or just a list of profiles
(wow go maps are a bit clunky and theres no way to get the keys without a loop? awkward)
I'd argue that the assumption of a primary identity (being the first one you created) is valid. Agreed this is password order dependent, and something we should consider when we approach designing deniable profiles.
The use case this comes up for is primarily apps built on top of Cwtch (and in particular non-gui / non-interactive apps i.e. command line tools where the assumption of 1 password, 1 profile, 1 identity holds) - in those cases looping through profiles / asking the user which onion they want to use etc. adds a lot of complexity.
Pull request closed