这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions lib/provider/notes_notifier_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ class NotesNotifier extends _$NotesNotifier {
if (note.renote case final renote?) {
add(renote);
} else if (note.renoteId case final renoteId? when detail) {
remove(renoteId);
if (!state.containsKey(renoteId)) {
remove(renoteId);
}
}
if (note.reply case final reply?) {
add(reply, detail: false);
} else if (note.replyId case final replyId? when detail) {
remove(replyId);
if (!state.containsKey(replyId)) {
remove(replyId);
}
}
final cachedNote = state[note.id];
state = {
Expand Down
2 changes: 1 addition & 1 deletion lib/provider/notes_notifier_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading