Fixed bug with trying to add list creators to their own lists when tasks assigned to them

pull/14/head
Sam Bosley 12 years ago
parent c5e785b902
commit 182e892ec1

@ -710,6 +710,13 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
break;
}
}
if (!memberFound) {
String ownerString = td.getValue(TagData.USER);
JSONObject owner = new JSONObject(ownerString);
long ownerId = owner.optLong("id", Task.USER_ID_IGNORE); //$NON-NLS-1$
if (ownerId > 0 && assignedId == ownerId)
memberFound = true;
}
} catch (JSONException e) {
return;
}

Loading…
Cancel
Save