mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Show expiration timer for incoming messages even if unread
This commit is contained in:
@@ -599,14 +599,11 @@ export class Message extends React.PureComponent<Props, State> {
|
||||
* because it can reduce layout jumpiness.
|
||||
*/
|
||||
private guessMetadataWidth(): number {
|
||||
const { direction, expirationLength, expirationTimestamp, status } =
|
||||
this.props;
|
||||
const { direction, expirationLength, status } = this.props;
|
||||
|
||||
let result = GUESS_METADATA_WIDTH_TIMESTAMP_SIZE;
|
||||
|
||||
const hasExpireTimer = Boolean(
|
||||
expirationLength && (expirationTimestamp || direction === 'outgoing')
|
||||
);
|
||||
const hasExpireTimer = Boolean(expirationLength);
|
||||
if (hasExpireTimer) {
|
||||
result += GUESS_METADATA_WIDTH_EXPIRE_TIMER_SIZE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user