-
Notifications
You must be signed in to change notification settings - Fork 46
Pro Stats #1730
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
Pro Stats #1730
Conversation
| return count; | ||
| } | ||
|
|
||
| public int getOutgoingFeatureCount(ProFeature feature) { |
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.
I think this should be ProMessageFeature
app/src/main/java/org/thoughtcrime/securesms/database/SmsDatabase.java
Outdated
Show resolved
Hide resolved
| "(($PRO_MESSAGE_FEATURES & $featureMask) != 0 OR " + | ||
| " ($PRO_PROFILE_FEATURES & $featureMask) != 0) AND $outgoingSelection" |
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.
I think this query might be incorrect. I don't think you would like to OR these two together because they have completely different meaning
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.
Ah yeah of course, as those values might be the same in the two different categories. I'll fix it.
|
|
||
| override fun getTotalPinned(): Int { | ||
| return configFactory.withUserConfigs { | ||
| override suspend fun getTotalPinned(): Int = withContext(Dispatchers.IO) { |
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.
I don't think you need to run config query on a separate thread - it's in memory data anyway
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.
It was for the benefit of having a suspend function for the async thread count, but I can revert that's ok
Added the preliminary work to integrate Pro Stats
Fixed formatting of chars left in text input
Also added QA tags for CTAs