fix accept block #288

Merged
dan merged 1 commits from fixAcceptBlock into trunk 2022-01-06 23:06:56 +00:00
Owner

needs: cwtch.im/libcwtch-go#58

  • Rework accept/block data flow to map to new storage
  • fix add group server list falls back to onion when no description
needs: https://git.openprivacy.ca/cwtch.im/libcwtch-go/pulls/58 - Rework accept/block data flow to map to new storage - fix add group server list falls back to onion when no description
dan force-pushed fixAcceptBlock from 6619b49856 to b88c7f88a9 2022-01-06 22:26:00 +00:00 Compare
dan changed title from WIP: fix accept block to fix accept block 2022-01-06 22:26:14 +00:00
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/437
sarah approved these changes 2022-01-06 22:34:12 +00:00
sarah left a comment
Owner

lgtm

lgtm
lib/model.dart Outdated
@ -110,8 +110,10 @@ class ProfileListState extends ChangeNotifier {
void add(String onion, String name, String picture, String contactsJson, String serverJson, bool online, bool encrypted) {
var idx = _profiles.indexWhere((element) => element.onion == onion);
if (idx == -1) {
EnvironmentConfig.debugLog("ProfileListState.Add idx -1 so adding...");
Owner

remove

remove
dan marked this conversation as resolved
lib/model.dart Outdated
@ -113,2 +113,4 @@
EnvironmentConfig.debugLog("ProfileListState.Add idx -1 so adding...");
_profiles.add(ProfileInfoState(onion: onion, nickname: name, imagePath: picture, contactsJson: contactsJson, serversJson: serverJson, online: online, encrypted: encrypted));
} else {
EnvironmentConfig.debugLog("ProfileListState.Add idx found, updateFrom()...");
Owner

remove

remove
dan marked this conversation as resolved
dan force-pushed fixAcceptBlock from b88c7f88a9 to 5e485b6327 2022-01-06 23:06:13 +00:00 Compare
dan merged commit 5c6765b565 into trunk 2022-01-06 23:06:56 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
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: cwtch.im/cwtch-ui#288
No description provided.