mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Hide "become a sustainer" button if you're already a sustainer
This commit is contained in:
@@ -7,6 +7,7 @@ import type { PropsDataType } from '../../components/conversation/ContactModal';
|
||||
import { ContactModal } from '../../components/conversation/ContactModal';
|
||||
import type { StateType } from '../reducer';
|
||||
|
||||
import { getAreWeASubscriber } from '../selectors/items';
|
||||
import { getIntl, getTheme } from '../selectors/user';
|
||||
import { getBadgesSelector } from '../selectors/badges';
|
||||
import { getConversationSelector } from '../selectors/conversations';
|
||||
@@ -35,6 +36,7 @@ const mapStateToProps = (state: StateType): PropsDataType => {
|
||||
}
|
||||
|
||||
return {
|
||||
areWeASubscriber: getAreWeASubscriber(state),
|
||||
areWeAdmin,
|
||||
badges: getBadgesSelector(state)(contact.badges),
|
||||
contact,
|
||||
|
||||
Reference in New Issue
Block a user