Merge branch 'thread-muting' into 'develop'

Permit muting a thread as an option on any post in the thread

See merge request soapbox-pub/soapbox!2247
environments/review-develop-3zknud/deployments/2494
Alex Gleason 2023-02-02 18:23:27 +00:00
commit 6aa1d35120
4 zmienionych plików z 9 dodań i 14 usunięć

Wyświetl plik

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Chats: improved display of media attachments.
- ServiceWorker: switch to a network-first strategy. The "An update is available!" prompt goes away.
- Posts: increased font size of focused status in threads.
- Posts: let "mute conversation" be clicked from any feed, not just noficiations.
### Fixed
- Chats: media attachments rendering at the wrong size and/or causing the chat to scroll on load.

Wyświetl plik

@ -98,7 +98,6 @@ const messages = defineMessages({
interface IStatusActionBar {
status: Status,
withDismiss?: boolean,
withLabels?: boolean,
expandable?: boolean,
space?: 'expand' | 'compact',
@ -106,7 +105,6 @@ interface IStatusActionBar {
const StatusActionBar: React.FC<IStatusActionBar> = ({
status,
withDismiss = false,
withLabels = false,
expandable = true,
space = 'compact',
@ -387,14 +385,13 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
menu.push(null);
if (ownAccount || withDismiss) {
menu.push({
text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation),
action: handleConversationMuteClick,
icon: mutingConversation ? require('@tabler/icons/bell.svg') : require('@tabler/icons/bell-off.svg'),
});
menu.push(null);
}
menu.push({
text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation),
action: handleConversationMuteClick,
icon: mutingConversation ? require('@tabler/icons/bell.svg') : require('@tabler/icons/bell-off.svg'),
});
menu.push(null);
if (ownAccount) {
if (publicStatus) {

Wyświetl plik

@ -53,7 +53,6 @@ export interface IStatus {
hoverable?: boolean,
variant?: 'default' | 'rounded',
showGroup?: boolean,
withDismiss?: boolean,
accountAction?: React.ReactElement,
}
@ -74,7 +73,6 @@ const Status: React.FC<IStatus> = (props) => {
hideActionBar,
variant = 'rounded',
showGroup = true,
withDismiss,
} = props;
const intl = useIntl();
@ -421,7 +419,7 @@ const Status: React.FC<IStatus> = (props) => {
{(!hideActionBar && !isUnderReview) && (
<div className='pt-4'>
<StatusActionBar status={actualStatus} withDismiss={withDismiss} />
<StatusActionBar status={actualStatus} />
</div>
)}
</div>

Wyświetl plik

@ -325,7 +325,6 @@ const Notification: React.FC<INotificaton> = (props) => {
return status && typeof status === 'object' ? (
<StatusContainer
id={status.id}
withDismiss
hidden={hidden}
onMoveDown={handleMoveDown}
onMoveUp={handleMoveUp}