remove debugging debris

This commit is contained in:
krawieck 2021-01-26 21:55:57 +01:00
parent 190ae1b3ae
commit dec2147b38
4 changed files with 2 additions and 18 deletions

View File

@ -32,7 +32,6 @@ class AddAccountPage extends HookWidget {
final selectedInstance = useState(instanceHost);
final icon = useState<String>(null);
useEffect(() {
// LemmyApi(selectedInstance.value).v2.run(GetPost(id: ));
LemmyApiV2(selectedInstance.value)
.run(GetSite())
.then((site) => icon.value = site.siteView.site.icon);

View File

@ -220,10 +220,8 @@ class AccountsStore extends ChangeNotifier {
usernameOrEmail: usernameOrEmail,
password: password,
));
// lemmy.login();
final userData = await lemmy
.run(GetSite(auth: token.raw))
.then((value) => value.myUser); // TODO: change Mser to User
final userData =
await lemmy.run(GetSite(auth: token.raw)).then((value) => value.myUser);
_tokens[instanceHost][userData.name] = token;

View File

@ -82,14 +82,8 @@ class CommentWidget extends HookWidget {
commentTree.comment.comment.creatorId ==
commentTree.comment.post.creatorId;
// bool get isMine => commentTree.comment.comment.creatorId == ;
// commentTree.comment.comment.creatorId == commentTree.comment.
// commentTree.comment.userId; // FIXME: WHAT SHOULD REPLACE USER ID????
@override
Widget build(BuildContext context) {
print(commentTree.comment.comment.id);
final theme = Theme.of(context);
final accStore = useAccountsStore();

View File

@ -59,13 +59,6 @@ class WriteComment extends HookWidget {
delayed.start();
try {
print('''
CreateComment(
content: ${controller.text},
postId: ${post?.post?.id ?? comment.post.id},
parentId: ${comment?.comment?.id},
auth: ${token.raw},
)''');
final res = await api.run(CreateComment(
content: controller.text,
postId: post?.post?.id ?? comment.post.id,