Skip to content

Commit

Permalink
Merge pull request #286 from poppingmoon/do-not-initialize-is-cw-opened
Browse files Browse the repository at this point in the history
MisskeyNoteのbuild時にisCwOpenedを更新しないように
  • Loading branch information
shiosyakeyakini-info authored Sep 9, 2023
2 parents ea35796 + 9823977 commit da9c337
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/view/common/misskey_notes/misskey_note.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:miria/extensions/user_extension.dart';
import 'package:miria/model/account.dart';
import 'package:miria/model/misskey_emoji_data.dart';
import 'package:miria/providers.dart';
import 'package:miria/repository/note_repository.dart';
import 'package:miria/router/app_router.dart';
import 'package:miria/view/common/account_scope.dart';
import 'package:miria/view/common/avatar_icon.dart';
Expand Down Expand Up @@ -236,13 +235,14 @@ class MisskeyNoteState extends ConsumerState<MisskeyNote> {
shouldCollaposed(displayTextNodes!));

ref.read(notesProvider(AccountScope.of(context))).updateNoteStatus(
widget.note.id,
(status) => NoteStatus(
isCwOpened: false,
widget.note.id,
(status) => status.copyWith(
isLongVisible: isLongVisible,
isReactionedRenote: isReactionedRenote,
isLongVisibleInitialized: true),
isNotify: false);
isLongVisibleInitialized: true,
),
isNotify: false,
);
}

final userId =
Expand Down

0 comments on commit da9c337

Please sign in to comment.