8000 fix: use appearNote to get children notes by poppingmoon · Pull Request #596 · poppingmoon/aria · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: use appearNote to get children notes #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions lib/view/widget/note_detailed_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class NoteDetailedWidget extends HookConsumerWidget {
);
}

final children = ref.watch(childrenNotesNotifierProvider(account, noteId));
final children = ref.watch(
childrenNotesNotifierProvider(account, appearNote.id),
);
final (
verticalPadding,
horizontalPadding,
Expand All @@ -99,7 +101,7 @@ class NoteDetailedWidget extends HookConsumerWidget {
);
final conversation =
appearNote.replyId != null
? ref.watch(conversationNotesProvider(account, noteId))
? ref.watch(conversationNotesProvider(account, appearNote.id))
: null;
final isRenote = note.isRenote;
final theme = Theme.of(context);
Expand Down Expand Up @@ -197,7 +199,6 @@ class NoteDetailedWidget extends HookConsumerWidget {
),
child: _NoteDetailedContent(
account: account,
noteId: noteId,
note: note,
appearNote: appearNote,
style: style,
Expand Down Expand Up @@ -246,7 +247,7 @@ class NoteDetailedWidget extends HookConsumerWidget {
.read(
childrenNotesNotifierProvider(
account,
noteId,
appearNote.id,
).notifier,
)
.loadMore(skipError: true),
Expand Down Expand Up @@ -284,14 +285,12 @@ class NoteDetailedWidget extends HookConsumerWidget {
class _NoteDetailedContent extends HookConsumerWidget {
const _NoteDetailedContent({
required this.account,
required this.noteId,
required this.note,
required this.appearNote,
required this.style,
});

final Account account;
final String noteId;
final Note note;
final Note appearNote;
final TextStyle style;
Expand Down
Loading
0