remove debugging debris
This commit is contained in:
parent
190ae1b3ae
commit
dec2147b38
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue