fix: NoteManagerでNoteActionsを毎回生成しないように

feat/v13/notes
yupix 10 months ago
parent 78ad980a66
commit f77afff31f
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -48,14 +48,15 @@ class NoteManager(AbstractManager):
note_id=note_id, session=session, client=client
)
self.poll: PollManager = PollManager(note_id=note_id, session=session, client=client)
self.__action: NoteActions = NoteActions(
note_id=self.__note_id,
session=self.__session,
client=self.__client,
) # property側で生成するとcacheが効かなくなる
def create_client_note_manager(self, note_id: str) -> ClientNoteManager:
return ClientNoteManager(note_id=note_id, session=self.__session, client=self.__client)
@property
def action(self) -> NoteActions:
return NoteActions(
note_id=self.__note_id,
session=self.__session,
client=self.__client,
)
return self.__action

Loading…
Cancel
Save