Differentiate "XmppConnectionService.getKnownHosts" by usage #11

Open
opened 2025-01-20 08:38:19 +01:00 by tristan · 0 comments
Owner

Currently XmppConnectionService.getKnownHosts is used in two use cases:

  • Create new / edit account to show possible JID Domains (EditAccountActivity)
  • Entering a JID in "add to block list", "choose contact" or "start conversation" EnterJidDialog

In the latter the current implementation searching through known hosts in contact list might be appropriate but in the first scenario it's simply bad.

Currently [XmppConnectionService.getKnownHosts](https://git.fucktheforce.de/thedevstack/PiratX/src/branch/master/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java#L5654) is used in two use cases: * Create new / edit account to show possible JID Domains [(EditAccountActivity)]([url](https://git.fucktheforce.de/thedevstack/PiratX/src/branch/master/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java#L1041)) * Entering a JID in "add to block list", "choose contact" or "start conversation" [EnterJidDialog]([url](https://git.fucktheforce.de/thedevstack/PiratX/src/branch/master/src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java#L334)) In the latter the current implementation searching through known hosts in contact list might be appropriate but in the first scenario it's simply bad.
Sign in to join this conversation.
No labels
update fork
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: thedevstack/PiratX#11
No description provided.