{
i18n={i18n}
attachment={attachments[0]}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveTopLeft={curveTopLeft}
curveBottomLeft={curveBottomLeft}
playIconOverlay={isVideoAttachment(attachments[0])}
@@ -104,6 +115,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[1], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveTopRight={curveTopRight}
curveBottomRight={curveBottomRight}
playIconOverlay={isVideoAttachment(attachments[1])}
@@ -125,6 +137,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[0], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveTopLeft={curveTopLeft}
curveBottomLeft={curveBottomLeft}
attachment={attachments[0]}
@@ -152,6 +165,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[2], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveBottomRight={curveBottomRight}
height={99}
width={99}
@@ -201,6 +215,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[2], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveBottomLeft={curveBottomLeft}
playIconOverlay={isVideoAttachment(attachments[2])}
height={149}
@@ -214,6 +229,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[3], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveBottomRight={curveBottomRight}
playIconOverlay={isVideoAttachment(attachments[3])}
height={149}
@@ -268,6 +284,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[2], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveBottomLeft={curveBottomLeft}
playIconOverlay={isVideoAttachment(attachments[2])}
height={99}
@@ -281,6 +298,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[3], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
playIconOverlay={isVideoAttachment(attachments[3])}
height={99}
width={98}
@@ -293,6 +311,7 @@ export class ImageGrid extends React.Component {
alt={getAlt(attachments[4], i18n)}
i18n={i18n}
bottomOverlay={withBottomOverlay}
+ noBorder={isSticker}
curveBottomRight={curveBottomRight}
playIconOverlay={isVideoAttachment(attachments[4])}
height={99}
diff --git a/ts/components/conversation/Message.md b/ts/components/conversation/Message.md
index aacf7c89c4fe..578baa092d5e 100644
--- a/ts/components/conversation/Message.md
+++ b/ts/components/conversation/Message.md
@@ -569,7 +569,7 @@ Note that timestamp and status can be hidden with the `collapseMetadata` boolean
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
onDownload={() => console.log('onDownload')}
onReply={() => console.log('onReply')}
/>
@@ -590,7 +590,7 @@ Note that timestamp and status can be hidden with the `collapseMetadata` boolean
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
onDownload={() => console.log('onDownload')}
onReply={() => console.log('onReply')}
/>
@@ -611,7 +611,7 @@ Note that timestamp and status can be hidden with the `collapseMetadata` boolean
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
onDownload={() => console.log('onDownload')}
onReply={() => console.log('onReply')}
/>
@@ -632,7 +632,7 @@ Note that timestamp and status can be hidden with the `collapseMetadata` boolean
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
onDownload={() => console.log('onDownload')}
onReply={() => console.log('onReply')}
/>
@@ -662,7 +662,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -682,7 +682,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -699,7 +699,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -717,7 +717,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -735,7 +735,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -754,7 +754,306 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
+ />
+
+
+```
+
+#### Sticker
+
+Stickers have no background, but they have all the standard message bubble features.
+
+```jsx
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+```
+
+#### Sticker with collapsed metadata
+
+First set is in a 1:1 conversation, second set is in a group.
+
+```jsx
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+```
+
+#### Sticker with pending image
+
+A sticker with no attachments (what our selectors produce for a pending sticker) is not displayed at all.
+
+```jsx
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
+ />
+
+
+ console.log('showVisualAttachment')}
/>
@@ -784,7 +1083,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -813,7 +1112,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -848,7 +1147,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -889,7 +1188,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -936,7 +1235,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -967,7 +1266,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -997,7 +1296,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1033,7 +1332,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1075,7 +1374,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1123,7 +1422,7 @@ First, showing the metadata overlay on dark and light images, then a message wit
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1150,7 +1449,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1168,7 +1467,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1186,7 +1485,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1204,7 +1503,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1229,7 +1528,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1248,7 +1547,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1278,7 +1577,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1309,7 +1608,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1333,7 +1632,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1351,7 +1650,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1369,7 +1668,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1387,7 +1686,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1412,7 +1711,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1431,7 +1730,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1450,7 +1749,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1470,7 +1769,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1488,7 +1787,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
expirationLength={5 * 60 * 1000}
expirationTimestamp={Date.now() + 5 * 60 * 1000}
/>
@@ -1509,7 +1808,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
expirationLength={5 * 60 * 1000}
expirationTimestamp={Date.now() + 5 * 60 * 1000}
/>
@@ -1535,7 +1834,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1553,7 +1852,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1571,7 +1870,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1589,7 +1888,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1614,7 +1913,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1633,7 +1932,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1652,7 +1951,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1671,7 +1970,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 50,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1698,7 +1997,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1719,7 +2018,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1742,7 +2041,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1765,7 +2064,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1794,7 +2093,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1816,7 +2115,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1839,7 +2138,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1862,7 +2161,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 1200,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1889,7 +2188,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1909,7 +2208,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1930,7 +2229,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1951,7 +2250,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1973,7 +2272,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -1995,7 +2294,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2018,7 +2317,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2041,7 +2340,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2068,7 +2367,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2089,7 +2388,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2111,7 +2410,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2133,7 +2432,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
height: 240,
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2160,7 +2459,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2180,7 +2479,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2202,7 +2501,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2224,7 +2523,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2249,7 +2548,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2268,7 +2567,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2291,7 +2590,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2311,7 +2610,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2334,7 +2633,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2351,7 +2650,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2368,7 +2667,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2385,7 +2684,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2407,7 +2706,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2423,7 +2722,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2439,7 +2738,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2455,7 +2754,7 @@ Note that the delivered indicator is always Signal Blue, not the conversation co
contentType: 'audio/mp3',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2484,7 +2783,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2503,7 +2802,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2522,7 +2821,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2541,7 +2840,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2561,7 +2860,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2580,7 +2879,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2622,7 +2921,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2640,7 +2939,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2658,7 +2957,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2676,7 +2975,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2701,7 +3000,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2720,7 +3019,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2737,7 +3036,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2754,7 +3053,7 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={() => console.log('onClickAttachment')}
+ showVisualAttachment={() => console.log('showVisualAttachment')}
/>
@@ -2778,8 +3077,8 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={isDangerous =>
- console.log('onClickAttachment - isDangerous:', isDangerous)
+ showVisualAttachment={isDangerous =>
+ console.log('showVisualAttachment - isDangerous:', isDangerous)
}
/>
@@ -2798,8 +3097,8 @@ Voice notes are not shown any differently from audio attachments.
fileSize: '3.05 KB',
},
]}
- onClickAttachment={isDangerous =>
- console.log('onClickAttachment - isDangerous:', isDangerous)
+ showVisualAttachment={isDangerous =>
+ console.log('showVisualAttachment - isDangerous:', isDangerous)
}
/>
@@ -2915,6 +3214,62 @@ Voice notes are not shown any differently from audio attachments.
```
+#### Link previews, stickers url
+
+Sticker link previews are forced to use the small link preview form, no matter the image size.
+
+```jsx
+
+
+ console.log('onClickLinkPreview', url)}
+ />
+
+
+ console.log('onClickLinkPreview', url)}
+ />
+
+
+```
+
#### Link previews, small image
```jsx
@@ -3228,6 +3583,19 @@ Note that the author avatar goes away if `collapseMetadata` is set.
authorAvatarPath={util.gifObjectUrl}
/>
+