-
Notifications
You must be signed in to change notification settings - Fork 309
Move more data to PerAccountStoreBase #1467
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
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6dc15d1
store [nfc]: Tie CorePerAccountStore explicitly 1-to-1 with PerAccoun…
gnprice 48dd2ba
typing_status [nfc]: Use PerAccountStoreBase to get connection
gnprice 849a4f4
store [nfc]: Fix "will throw if disposed" comment on account to be mo…
gnprice eba689b
store [nfc]: Move global store up to PerAccountStoreBase too
gnprice 082cd11
store [nfc]: Move accountId to PerAccountStoreBase
gnprice 766ff81
store [nfc]: Move `account` getter up to PerAccountStoreBase
gnprice e900b8d
store [nfc]: Move assert up to core that connection/account agree on …
gnprice d764c3a
store [nfc]: Move realmUrl up to PerAccountStoreBase
gnprice 6706ce9
emoji [nfc]: Use PerAccountStoreBase for realmUrl
gnprice 81656f4
emoji: Parse URLs the same way for validation as for use
gnprice b6f712f
store [nfc]: Move tryResolveUrl up to base, and use it more
gnprice ffda581
user [nfc]: Move selfUserId to PerAccountStoreBase
gnprice 9f752aa
store [nfc]: Get selfUserId on substores from PerAccountStoreBase
gnprice ec9aa35
unreads test [nfc]: Accept that a whole PerAccountStore is used for t…
gnprice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This might be splitting hairs, but before this commit, we haven't treated
TypingStatus
as a "substore" in the same sense as the others:MessageStore
and itsMessageStoreImpl
,EmojiStore
and itsEmojiStoreImpl
, etc.; is it OK to start treatingTypingStatus
as a substore in just the way this commit does?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.
Yeah, it's not structured in the same way as those two and UserStore and ChannelStore. Instead it more resembles Unreads, RecentSenders, or RecentDmConversationsView (two of which also appear in this commit).
The actual MessageStoreImpl or EmojiStoreImpl etc., though, is very similar to TypingStatus or Unreads etc.:
I think that first point makes a good definition for the term "substore".