diff --git a/ts/components/conversation/CallingNotification.stories.tsx b/ts/components/conversation/CallingNotification.stories.tsx
index d629a1185..d642ec447 100644
--- a/ts/components/conversation/CallingNotification.stories.tsx
+++ b/ts/components/conversation/CallingNotification.stories.tsx
@@ -74,6 +74,25 @@ const getCommonProps = () => ({
));
});
+story.add('Group call: started by someone with a long name', () => {
+ const longName = 'ðĪðŠðĶ'.repeat(50);
+
+ return (
+
+ );
+});
+
story.add('Group call: active, call full', () => (
];
+const longName = 'ð·ððĨķ'.repeat(50);
+
const stories: Array = [
[
'Combo',
@@ -390,6 +392,24 @@ const stories: Array = [
},
],
],
+ [
+ 'Long name',
+ [
+ {
+ from: {
+ title: longName,
+ name: longName,
+ phoneNumber: '(202) 555-1000',
+ },
+ changes: [
+ {
+ type: 'general',
+ },
+ ],
+ i18n,
+ },
+ ],
+ ],
];
book.add('GroupNotification', () =>
diff --git a/ts/components/conversation/SafetyNumberNotification.stories.tsx b/ts/components/conversation/SafetyNumberNotification.stories.tsx
index cef2f9054..d10e30bac 100644
--- a/ts/components/conversation/SafetyNumberNotification.stories.tsx
+++ b/ts/components/conversation/SafetyNumberNotification.stories.tsx
@@ -54,3 +54,14 @@ stories.add('Direct Conversation', () => {
return ;
});
+
+stories.add('Long name in group', () => {
+ const props = createProps({
+ isGroup: true,
+ contact: createContact({
+ title: 'ðââŽðð'.repeat(50),
+ }),
+ });
+
+ return ;
+});
diff --git a/ts/components/conversation/TimerNotification.stories.tsx b/ts/components/conversation/TimerNotification.stories.tsx
index 71553137a..680f66930 100644
--- a/ts/components/conversation/TimerNotification.stories.tsx
+++ b/ts/components/conversation/TimerNotification.stories.tsx
@@ -62,6 +62,26 @@ story.add('Set By Other', () => {
);
});
+story.add('Set By Other (with a long name)', () => {
+ const longName = 'ðĶīð§Đðī'.repeat(50);
+
+ const props = createProps({
+ expireTimer: moment.duration(1, 'hour').asSeconds(),
+ type: 'fromOther',
+ phoneNumber: '(202) 555-1000',
+ profileName: longName,
+ title: longName,
+ });
+
+ return (
+ <>
+
+
+
+ >
+ );
+});
+
story.add('Set By You', () => {
const props = createProps({
expireTimer: moment.duration(1, 'hour').asSeconds(),
diff --git a/ts/components/conversation/VerificationNotification.stories.tsx b/ts/components/conversation/VerificationNotification.stories.tsx
index dd25c9b53..f8c028cfd 100644
--- a/ts/components/conversation/VerificationNotification.stories.tsx
+++ b/ts/components/conversation/VerificationNotification.stories.tsx
@@ -26,7 +26,7 @@ const createProps = (overrideProps: Partial = {}): Props => ({
i18n,
type: overrideProps.type || 'markVerified',
isLocal: boolean('isLocal', overrideProps.isLocal !== false),
- contact,
+ contact: overrideProps.contact || contact,
});
story.add('Mark as Verified', () => {
@@ -52,3 +52,18 @@ story.add('Mark as Not Verified Remotely', () => {
return ;
});
+
+story.add('Long name', () => {
+ const longName = 'ððŽð'.repeat(50);
+
+ const props = createProps({
+ type: 'markVerified',
+ contact: {
+ ...contact,
+ profileName: longName,
+ title: longName,
+ },
+ });
+
+ return ;
+});