Restrict text story post sends to stories only.

This commit is contained in:
Alex Hart
2022-03-07 10:57:09 -04:00
parent 8176d25b4c
commit 8a75d78ce7
2 changed files with 1 additions and 23 deletions

View File

@@ -132,28 +132,6 @@ class TextStoryPostSendFragment : Fragment(R.layout.stories_send_text_post_fragm
)
)
)
if (query.isNullOrEmpty()) {
addSection(
ContactSearchConfiguration.Section.Recents(
includeHeader = true
)
)
}
addSection(
ContactSearchConfiguration.Section.Individuals(
includeHeader = true,
transportType = ContactSearchConfiguration.TransportType.PUSH,
includeSelf = true
)
)
addSection(
ContactSearchConfiguration.Section.Groups(
includeHeader = true
)
)
}
}

View File

@@ -1320,7 +1320,7 @@ public final class MessageContentProcessor {
private void handleStoryMessage(@NonNull SignalServiceContent content, @NonNull SignalServiceStoryMessage message, @NonNull Recipient senderRecipient) throws StorageFailedException {
log(content.getTimestamp(), "Story message.");
if (Stories.isFeatureAvailable()) {
if (!Stories.isFeatureAvailable()) {
warn(content.getTimestamp(), "Dropping unsupported story.");
return;
}