-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cleaned up variable name and comments #8
base: main
Are you sure you want to change the base?
Conversation
private(set) var observervableTypingMemeberList: ObservableFetchRequestResult<PersistentParticipantDataItem>? | ||
private(set) var observervableTypingMemberList: ObservableFetchRequestResult<PersistentParticipantDataItem>? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
observableTypingParticipantList
sounds more clear
@@ -40,7 +40,7 @@ class ConversationViewModel: NSObject { | |||
|
|||
weak var delegate: ConversationViewModelDelegate? | |||
|
|||
// MARK: Init | |||
// Initialize the Conversation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the "MARK:" prefix - it shows up in Xcode code minimap.
@@ -68,17 +68,17 @@ class ConversationViewModel: NSObject { | |||
messagesManager.reactToMessage(withSid: sid, withReaction: reaction) | |||
} | |||
|
|||
// MARK: Deintialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for these.
@segheysens hi, could you please address the review comments? |
@berkus made these updates! |
@@ -68,17 +68,17 @@ class ConversationViewModel: NSObject { | |||
messagesManager.reactToMessage(withSid: sid, withReaction: reaction) | |||
} | |||
|
|||
// MARK: Deintialization | |||
// Deinitialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return MARK
here please.
deinit { | ||
// During transition, remove observers | ||
unsubscribeFromConversationChanges() | ||
} | ||
|
||
// MARK: Methods | ||
// Methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here please, too.
private func unsubscribeFromConversationChanges() { | ||
observableConversation?.removeObserver(self) | ||
observableMessageList.removeObserver(self) | ||
observervableTypingMemeberList?.removeObserver(self) | ||
observervableTypingMemberList?.removeObserver(self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be observableTypingParticipantList
?
@segheysens hi! Please address the remaining notes and I believe the |
@segheysens hi, do you plan to finish up this PR? |
@segheysens gentle poke! |
Contributing to Twilio