chore: rename useAreSameThanOurSide to useOurExpirationMatches

pull/3281/head
Audric Ackermann 4 months ago
parent 42d54abb91
commit ca67167ce5
No known key found for this signature in database

@ -107,7 +107,7 @@ function useFollowSettingsButtonClick({ messageId }: WithMessageId) {
return { doIt };
}
function useAreSameThanOurSide({ messageId }: WithMessageId) {
function useOurExpirationMatches({ messageId }: WithMessageId) {
const timespanSeconds = useMessageExpirationUpdateTimespanSeconds(messageId);
const expirationMode = useMessageExpirationUpdateMode(messageId);
const disabled = useMessageExpirationUpdateDisabled(messageId);
@ -135,7 +135,7 @@ const FollowSettingsButton = ({ messageId }: WithMessageId) => {
const click = useFollowSettingsButtonClick({
messageId,
});
const areSameThanOurs = useAreSameThanOurSide({ messageId });
const areSameThanOurs = useOurExpirationMatches({ messageId });
if (!v2Released || !isPrivateAndFriend) {
return null;

@ -75,7 +75,7 @@ async function markReadFromMessageId({
messageId,
isUnread,
}: WithMessageId & WithConvoId & { isUnread: boolean }) {
// isUnread comes from the redux store in memory, so pretty fast and allows us to fetch from the DB too often
// isUnread comes from the redux store in memory, so pretty fast and allows us to not fetch from the DB too often
if (!isUnread) {
return;
}

@ -224,7 +224,7 @@ export function useMessageCallNotificationType(messageId: string) {
*/
/**
* Return the data exrtaction type linked to the specified message
* Return the data extraction type linked to the specified message
*/
export function useMessageDataExtractionType(messageId: string) {
return useMessagePropsByMessageId(messageId)?.propsForDataExtractionNotification?.type;

Loading…
Cancel
Save