stream-chat-react-native-core 5.23.0-beta.2 → 5.23.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +1 -1
  2. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +1 -1
  4. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +1 -1
  6. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  7. package/lib/commonjs/components/MessageList/MessageList.js +33 -30
  8. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  9. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +30 -36
  10. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  11. package/lib/commonjs/i18n/fr.json +27 -27
  12. package/lib/commonjs/i18n/hi.json +27 -27
  13. package/lib/commonjs/i18n/it.json +27 -27
  14. package/lib/commonjs/i18n/nl.json +27 -27
  15. package/lib/commonjs/i18n/ru.json +27 -27
  16. package/lib/commonjs/i18n/tr.json +27 -27
  17. package/lib/commonjs/version.json +1 -1
  18. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +1 -1
  19. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  20. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +1 -1
  21. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  22. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +1 -1
  23. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  24. package/lib/module/components/MessageList/MessageList.js +33 -30
  25. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  26. package/lib/module/components/MessageOverlay/MessageOverlay.js +30 -36
  27. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  28. package/lib/module/i18n/fr.json +27 -27
  29. package/lib/module/i18n/hi.json +27 -27
  30. package/lib/module/i18n/it.json +27 -27
  31. package/lib/module/i18n/nl.json +27 -27
  32. package/lib/module/i18n/ru.json +27 -27
  33. package/lib/module/i18n/tr.json +27 -27
  34. package/lib/module/version.json +1 -1
  35. package/lib/typescript/i18n/fr.json +27 -27
  36. package/lib/typescript/i18n/hi.json +27 -27
  37. package/lib/typescript/i18n/it.json +27 -27
  38. package/lib/typescript/i18n/nl.json +27 -27
  39. package/lib/typescript/i18n/ru.json +27 -27
  40. package/lib/typescript/i18n/tr.json +27 -27
  41. package/package.json +1 -1
  42. package/src/components/Channel/hooks/useCreateMessagesContext.ts +1 -0
  43. package/src/components/Message/MessageSimple/utils/parseLinks.test.ts +4 -0
  44. package/src/components/Message/MessageSimple/utils/parseLinks.ts +3 -3
  45. package/src/components/MessageList/MessageList.tsx +3 -1
  46. package/src/components/MessageOverlay/MessageOverlay.tsx +1 -6
  47. package/src/i18n/fr.json +27 -27
  48. package/src/i18n/hi.json +27 -27
  49. package/src/i18n/it.json +27 -27
  50. package/src/i18n/nl.json +27 -27
  51. package/src/i18n/ru.json +27 -27
  52. package/src/i18n/tr.json +27 -27
  53. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_linkifyjs","require","removeMarkdownLinksFromText","input","replace","removeUserNamesWithEmailFromText","parseLinksFromText","strippedInput","reduce","acc","fn","links","find","emails","result","concat","_toConsumableArray2","map","_ref","href","value","raw","url","exports"],"sources":["parseLinks.ts"],"sourcesContent":["import { find } from 'linkifyjs';\n\ninterface LinkInfo {\n raw: string;\n url: string;\n}\n\n/**\n * This is done separately because of the version of javascript run\n * for expo\n * */\nconst removeMarkdownLinksFromText = (input: string) => input.replace(/\\[[\\w\\s]+\\]\\(.*\\)/g, '');\n\n/**\n * This is done to avoid parsing usernames with dot as well as an email address in it.\n */\nconst removeUserNamesWithEmailFromText = (input: string) =>\n input.replace(/@(\\w+(\\.\\w+)?)(@\\w+\\.\\w+)/g, '');\n\nexport const parseLinksFromText = (input: string): LinkInfo[] => {\n const strippedInput = [removeMarkdownLinksFromText, removeUserNamesWithEmailFromText].reduce(\n (acc, fn) => fn(acc),\n input,\n );\n\n const links = find(strippedInput, 'url');\n const emails = find(strippedInput, 'email');\n\n const result: LinkInfo[] = [...links, ...emails].map(({ href, value }) => ({\n raw: value,\n url: href,\n }));\n\n return result;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAWA,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAIC,KAAa;EAAA,OAAKA,KAAK,CAACC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;AAAA;AAK9F,IAAMC,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAIF,KAAa;EAAA,OACrDA,KAAK,CAACC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC;AAAA;AAE1C,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIH,KAAa,EAAiB;EAC/D,IAAMI,aAAa,GAAG,CAACL,2BAA2B,EAAEG,gCAAgC,CAAC,CAACG,MAAM,CAC1F,UAACC,GAAG,EAAEC,EAAE;IAAA,OAAKA,EAAE,CAACD,GAAG,CAAC;EAAA,GACpBN,KACF,CAAC;EAED,IAAMQ,KAAK,GAAG,IAAAC,eAAI,EAACL,aAAa,EAAE,KAAK,CAAC;EACxC,IAAMM,MAAM,GAAG,IAAAD,eAAI,EAACL,aAAa,EAAE,OAAO,CAAC;EAE3C,IAAMO,MAAkB,GAAG,GAAAC,MAAA,KAAAC,mBAAA,aAAIL,KAAK,OAAAK,mBAAA,aAAKH,MAAM,GAAEI,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAA,OAAQ;MACzEC,GAAG,EAAED,KAAK;MACVE,GAAG,EAAEH;IACP,CAAC;EAAA,CAAC,CAAC;EAEH,OAAOL,MAAM;AACf,CAAC;AAACS,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_linkifyjs","require","removeMarkdownLinksFromText","input","replace","removeUserNamesWithEmailFromText","parseLinksFromText","strippedInput","reduce","acc","fn","links","find","emails","result","concat","_toConsumableArray2","map","_ref","href","value","raw","url","exports"],"sources":["parseLinks.ts"],"sourcesContent":["import { find } from 'linkifyjs';\n\ninterface LinkInfo {\n raw: string;\n url: string;\n}\n\n/**\n * This is done to remove all markdown formatted links.\n * eg: [google.com](https://www.google.com), [Google](https://www.google.com), [https://www.google.com](https://www.google.com)\n * */\nconst removeMarkdownLinksFromText = (input: string) => input.replace(/\\[.*\\]\\(.*\\)/g, '');\n\n/**\n * This is done to avoid parsing usernames with dot as well as an email address in it.\n */\nconst removeUserNamesWithEmailFromText = (input: string) =>\n input.replace(/@(\\w+(\\.\\w+)?)(@\\w+\\.\\w+)/g, '');\n\nexport const parseLinksFromText = (input: string): LinkInfo[] => {\n const strippedInput = [removeMarkdownLinksFromText, removeUserNamesWithEmailFromText].reduce(\n (acc, fn) => fn(acc),\n input,\n );\n\n const links = find(strippedInput, 'url');\n const emails = find(strippedInput, 'email');\n\n const result: LinkInfo[] = [...links, ...emails].map(({ href, value }) => ({\n raw: value,\n url: href,\n }));\n\n return result;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAWA,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAIC,KAAa;EAAA,OAAKA,KAAK,CAACC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;AAAA;AAKzF,IAAMC,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAIF,KAAa;EAAA,OACrDA,KAAK,CAACC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC;AAAA;AAE1C,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIH,KAAa,EAAiB;EAC/D,IAAMI,aAAa,GAAG,CAACL,2BAA2B,EAAEG,gCAAgC,CAAC,CAACG,MAAM,CAC1F,UAACC,GAAG,EAAEC,EAAE;IAAA,OAAKA,EAAE,CAACD,GAAG,CAAC;EAAA,GACpBN,KACF,CAAC;EAED,IAAMQ,KAAK,GAAG,IAAAC,eAAI,EAACL,aAAa,EAAE,KAAK,CAAC;EACxC,IAAMM,MAAM,GAAG,IAAAD,eAAI,EAACL,aAAa,EAAE,OAAO,CAAC;EAE3C,IAAMO,MAAkB,GAAG,GAAAC,MAAA,KAAAC,mBAAA,aAAIL,KAAK,OAAAK,mBAAA,aAAKH,MAAM,GAAEI,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAA,OAAQ;MACzEC,GAAG,EAAED,KAAK;MACVE,GAAG,EAAEH;IACP,CAAC;EAAA,CAAC,CAAC;EAEH,OAAOL,MAAM;AACf,CAAC;AAACS,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA"}
@@ -1,6 +1,6 @@
1
1
  var _parseLinks = require("./parseLinks");
2
2
  describe('parseLinksFromText', function () {
3
- it.each([['https://www.getstream.io', 'https://www.getstream.io'], ['https://getstream.io', 'https://getstream.io'], ['scrn://team-chat', undefined], ['https://localhost', 'https://localhost'], ['https://localhost/with/path?and=query&multiple=params', 'https://localhost/with/path?and=query&multiple=params'], ['https://localhost/with/path?and=query#fragment', 'https://localhost/with/path?and=query#fragment'], ['reactnative.dev', 'http://reactnative.dev'], ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'], ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'], ['https://getstream.io/chat/docs/react-native/?language=javascript', 'https://getstream.io/chat/docs/react-native/?language=javascript'], ['127.0.0.1/local_(development)_server', undefined], ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'], ['https://help.apple.com/xcode/mac/current/#/devba7f53ad4', 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4']])('Returns the encoded value of %p as %p', function (link, expected) {
3
+ it.each([['https://www.getstream.io', 'https://www.getstream.io'], ['https://getstream.io', 'https://getstream.io'], ['scrn://team-chat', undefined], ['https://localhost', 'https://localhost'], ['https://localhost/with/path?and=query&multiple=params', 'https://localhost/with/path?and=query&multiple=params'], ['https://localhost/with/path?and=query#fragment', 'https://localhost/with/path?and=query#fragment'], ['reactnative.dev', 'http://reactnative.dev'], ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'], ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'], ['https://getstream.io/chat/docs/react-native/?language=javascript', 'https://getstream.io/chat/docs/react-native/?language=javascript'], ['127.0.0.1/local_(development)_server', undefined], ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'], ['https://help.apple.com/xcode/mac/current/#/devba7f53ad4', 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4'], ['[google.com](https://www.google.com)', undefined], ['[https://www.google.com](https://www.google.com)', undefined], ['[abc]()', undefined], ['[](https://www.google.com)', undefined]])('Returns the encoded value of %p as %p', function (link, expected) {
4
4
  var _result$;
5
5
  var result = (0, _parseLinks.parseLinksFromText)(link);
6
6
  expect((_result$ = result[0]) == null ? void 0 : _result$.url).toBe(expected);
@@ -1 +1 @@
1
- {"version":3,"names":["_parseLinks","require","describe","it","each","undefined","link","expected","_result$","result","parseLinksFromText","expect","url","toBe","input","toEqual","raw","email","toHaveLength"],"sources":["parseLinks.test.ts"],"sourcesContent":["import { parseLinksFromText } from './parseLinks';\n\ndescribe('parseLinksFromText', () => {\n it.each([\n ['https://www.getstream.io', 'https://www.getstream.io'],\n ['https://getstream.io', 'https://getstream.io'],\n ['scrn://team-chat', undefined],\n ['https://localhost', 'https://localhost'],\n [\n 'https://localhost/with/path?and=query&multiple=params',\n 'https://localhost/with/path?and=query&multiple=params',\n ],\n [\n 'https://localhost/with/path?and=query#fragment',\n 'https://localhost/with/path?and=query#fragment',\n ],\n ['reactnative.dev', 'http://reactnative.dev'],\n ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'],\n ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'],\n [\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n ],\n ['127.0.0.1/local_(development)_server', undefined],\n ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'],\n [\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n ],\n ])('Returns the encoded value of %p as %p', (link, expected) => {\n const result = parseLinksFromText(link);\n expect(result[0]?.url).toBe(expected);\n });\n it('parses fqdn', () => {\n const input = `We have put the apim bol,\n temporarily so :sj: we can later put the monitors on my grasp\n on reality right now is\n https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier\n :)`;\n const result = parseLinksFromText(input);\n expect(result).toEqual([\n {\n raw: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n url: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n },\n ]);\n });\n it.each([\n ['support+rn@getstream.io'],\n ['support.rn@getstream.io'],\n ['support-rn@getstream.io'],\n ['support_rn@getstream.io'],\n ])('Can parse the email address %p', (email) => {\n const result = parseLinksFromText(email);\n expect(result[0].url).toBe('mailto:' + email);\n expect(result[0].raw).toBe(email);\n });\n it(\"doesn't double the mailto prefix\", () => {\n const input = 'mailto:support@getstream.io';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: input,\n });\n });\n it('Does not falsely parse LINKs from text content', () => {\n const input = `#This string exists to test that we don't produce false positives\n Existing links:\n [already a parsed link](https://getstream.io/blog/react-native-how-to-build-bidirectional-infinite-scroll/)\n [even a bogus one]( should not match )\n ## These should, however, be parsed:\n www.getstream.io\n getstream.io\n `;\n const result = parseLinksFromText(input);\n expect(result).toHaveLength(2);\n });\n it('Encodes incomplete emoji unicode', () => {\n const input = 'https://getstream.io/�';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: 'https://getstream.io/�',\n });\n });\n});\n"],"mappings":"AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEAC,QAAQ,CAAC,oBAAoB,EAAE,YAAM;EACnCC,EAAE,CAACC,IAAI,CAAC,CACN,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,EACxD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,CAAC,kBAAkB,EAAEC,SAAS,CAAC,EAC/B,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAC1C,CACE,uDAAuD,EACvD,uDAAuD,CACxD,EACD,CACE,gDAAgD,EAChD,gDAAgD,CACjD,EACD,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,EAC7C,CAAC,oCAAoC,EAAE,2CAA2C,CAAC,EACnF,CAAC,sCAAsC,EAAE,sCAAsC,CAAC,EAChF,CACE,kEAAkE,EAClE,kEAAkE,CACnE,EACD,CAAC,sCAAsC,EAAEA,SAAS,CAAC,EACnD,CAAC,+BAA+B,EAAE,+BAA+B,CAAC,EAClE,CACE,yDAAyD,EACzD,yDAAyD,CAC1D,CACF,CAAC,CAAC,uCAAuC,EAAE,UAACC,IAAI,EAAEC,QAAQ,EAAK;IAAA,IAAAC,QAAA;IAC9D,IAAMC,MAAM,GAAG,IAAAC,8BAAkB,EAACJ,IAAI,CAAC;IACvCK,MAAM,EAAAH,QAAA,GAACC,MAAM,CAAC,CAAC,CAAC,qBAATD,QAAA,CAAWI,GAAG,CAAC,CAACC,IAAI,CAACN,QA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C,CAAC;EACFf,EAAE,CAAC,kCAAkC,EAAE,YAAM;IAC3C,IAAMW,KAAK,GAAG,wBAAwB;IACtC,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAACM,OAAO,CAAC;MACxBC,GAAG,EAAEF,KAAK;MACVF,GAAG,EAAE;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["_parseLinks","require","describe","it","each","undefined","link","expected","_result$","result","parseLinksFromText","expect","url","toBe","input","toEqual","raw","email","toHaveLength"],"sources":["parseLinks.test.ts"],"sourcesContent":["import { parseLinksFromText } from './parseLinks';\n\ndescribe('parseLinksFromText', () => {\n it.each([\n ['https://www.getstream.io', 'https://www.getstream.io'],\n ['https://getstream.io', 'https://getstream.io'],\n ['scrn://team-chat', undefined],\n ['https://localhost', 'https://localhost'],\n [\n 'https://localhost/with/path?and=query&multiple=params',\n 'https://localhost/with/path?and=query&multiple=params',\n ],\n [\n 'https://localhost/with/path?and=query#fragment',\n 'https://localhost/with/path?and=query#fragment',\n ],\n ['reactnative.dev', 'http://reactnative.dev'],\n ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'],\n ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'],\n [\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n ],\n ['127.0.0.1/local_(development)_server', undefined],\n ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'],\n [\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n ],\n ['[google.com](https://www.google.com)', undefined],\n ['[https://www.google.com](https://www.google.com)', undefined],\n ['[abc]()', undefined],\n ['[](https://www.google.com)', undefined],\n ])('Returns the encoded value of %p as %p', (link, expected) => {\n const result = parseLinksFromText(link);\n expect(result[0]?.url).toBe(expected);\n });\n it('parses fqdn', () => {\n const input = `We have put the apim bol,\n temporarily so :sj: we can later put the monitors on my grasp\n on reality right now is\n https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier\n :)`;\n const result = parseLinksFromText(input);\n expect(result).toEqual([\n {\n raw: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n url: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n },\n ]);\n });\n it.each([\n ['support+rn@getstream.io'],\n ['support.rn@getstream.io'],\n ['support-rn@getstream.io'],\n ['support_rn@getstream.io'],\n ])('Can parse the email address %p', (email) => {\n const result = parseLinksFromText(email);\n expect(result[0].url).toBe('mailto:' + email);\n expect(result[0].raw).toBe(email);\n });\n it(\"doesn't double the mailto prefix\", () => {\n const input = 'mailto:support@getstream.io';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: input,\n });\n });\n it('Does not falsely parse LINKs from text content', () => {\n const input = `#This string exists to test that we don't produce false positives\n Existing links:\n [already a parsed link](https://getstream.io/blog/react-native-how-to-build-bidirectional-infinite-scroll/)\n [even a bogus one]( should not match )\n ## These should, however, be parsed:\n www.getstream.io\n getstream.io\n `;\n const result = parseLinksFromText(input);\n expect(result).toHaveLength(2);\n });\n it('Encodes incomplete emoji unicode', () => {\n const input = 'https://getstream.io/�';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: 'https://getstream.io/�',\n });\n });\n});\n"],"mappings":"AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEAC,QAAQ,CAAC,oBAAoB,EAAE,YAAM;EACnCC,EAAE,CAACC,IAAI,CAAC,CACN,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,EACxD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,CAAC,kBAAk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yB,CAAC,EAC3B,CAAC,yBAAyB,CAAC,CAC5B,CAAC,CAAC,gCAAgC,EAAE,UAACa,KAAK,EAAK;IAC9C,IAAMR,MAAM,GAAG,IAAAC,8BAAkB,EAACO,KAAK,CAAC;IACxCN,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAACG,GAAG,CAAC,CAACC,IAAI,CAAC,SAAS,GAAGI,KAAK,CAAC;IAC7CN,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAACO,GAAG,CAAC,CAACH,IAAI,CAACI,KAAK,CAAC;EACnC,CAAC,CAAC;EACFd,EAAE,CAAC,kCAAkC,EAAE,YAAM;IAC3C,IAAMW,KAAK,GAAG,6BAA6B;IAC3C,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAACM,OAAO,CAAC;MACxBC,GAAG,EAAEF,KAAK;MACVF,GAAG,EAAEE;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;EACFX,EAAE,CAAC,gDAAgD,EAAE,YAAM;IACzD,IAAMW,KAAK,kUAOZ;IACC,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAACS,YAAY,CAAC,CAAC,CAAC;EAChC,CAAC,CAAC;EACFf,EAAE,CAAC,kCAAkC,EAAE,YAAM;IAC3C,IAAMW,KAAK,GAAG,wBAAwB;IACtC,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAACM,OAAO,CAAC;MACxBC,GAAG,EAAEF,KAAK;MACVF,GAAG,EAAE;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -153,12 +153,15 @@ var MessageListWithContext = function MessageListWithContext(props) {
153
153
  listContainer = _theme$messageList.listContainer,
154
154
  messageContainer = _theme$messageList.messageContainer,
155
155
  screenPadding = theme.screenPadding;
156
+ var myMessageThemeString = (0, _react.useMemo)(function () {
157
+ return JSON.stringify(myMessageTheme);
158
+ }, [myMessageTheme]);
156
159
  var modifiedTheme = (0, _react.useMemo)(function () {
157
160
  return (0, _ThemeContext.mergeThemes)({
158
161
  style: myMessageTheme,
159
162
  theme: theme
160
163
  });
161
- }, [myMessageTheme, theme]);
164
+ }, [myMessageThemeString, theme]);
162
165
  var _useMessageList = (0, _useMessageList2.useMessageList)({
163
166
  noGroupByUser: noGroupByUser,
164
167
  threadList: threadList
@@ -354,7 +357,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
354
357
  __self: _this,
355
358
  __source: {
356
359
  fileName: _jsxFileName,
357
- lineNumber: 626,
360
+ lineNumber: 628,
358
361
  columnNumber: 11
359
362
  }
360
363
  }, _react["default"].createElement(MessageSystem, {
@@ -365,14 +368,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
365
368
  __self: _this,
366
369
  __source: {
367
370
  fileName: _jsxFileName,
368
- lineNumber: 627,
371
+ lineNumber: 629,
369
372
  columnNumber: 13
370
373
  }
371
374
  })), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
372
375
  __self: _this,
373
376
  __source: {
374
377
  fileName: _jsxFileName,
375
- lineNumber: 632,
378
+ lineNumber: 634,
376
379
  columnNumber: 43
377
380
  }
378
381
  }));
@@ -383,7 +386,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
383
386
  __self: _this,
384
387
  __source: {
385
388
  fileName: _jsxFileName,
386
- lineNumber: 639,
389
+ lineNumber: 641,
387
390
  columnNumber: 32
388
391
  }
389
392
  });
@@ -402,7 +405,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
402
405
  __self: _this,
403
406
  __source: {
404
407
  fileName: _jsxFileName,
405
- lineNumber: 641,
408
+ lineNumber: 643,
406
409
  columnNumber: 7
407
410
  }
408
411
  });
@@ -411,7 +414,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
411
414
  __self: _this,
412
415
  __source: {
413
416
  fileName: _jsxFileName,
414
- lineNumber: 658,
417
+ lineNumber: 660,
415
418
  columnNumber: 9
416
419
  }
417
420
  }, _react["default"].createElement(_reactNative.View, {
@@ -419,14 +422,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
419
422
  __self: _this,
420
423
  __source: {
421
424
  fileName: _jsxFileName,
422
- lineNumber: 659,
425
+ lineNumber: 661,
423
426
  columnNumber: 11
424
427
  }
425
428
  }, renderMessage)), !shouldApplyAndroidWorkaround && renderDateSeperator, insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
426
429
  __self: _this,
427
430
  __source: {
428
431
  fileName: _jsxFileName,
429
- lineNumber: 663,
432
+ lineNumber: 665,
430
433
  columnNumber: 41
431
434
  }
432
435
  })) : _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
@@ -434,14 +437,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
434
437
  __self: _this,
435
438
  __source: {
436
439
  fileName: _jsxFileName,
437
- lineNumber: 667,
440
+ lineNumber: 669,
438
441
  columnNumber: 9
439
442
  }
440
443
  }, shouldApplyAndroidWorkaround && renderDateSeperator, renderMessage), !shouldApplyAndroidWorkaround && renderDateSeperator, insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
441
444
  __self: _this,
442
445
  __source: {
443
446
  fileName: _jsxFileName,
444
- lineNumber: 673,
447
+ lineNumber: 675,
445
448
  columnNumber: 41
446
449
  }
447
450
  }));
@@ -761,7 +764,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
761
764
  __self: _this,
762
765
  __source: {
763
766
  fileName: _jsxFileName,
764
- lineNumber: 1067,
767
+ lineNumber: 1069,
765
768
  columnNumber: 7
766
769
  }
767
770
  }, _react["default"].createElement(EmptyStateIndicator, {
@@ -769,7 +772,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
769
772
  __self: _this,
770
773
  __source: {
771
774
  fileName: _jsxFileName,
772
- lineNumber: 1071,
775
+ lineNumber: 1073,
773
776
  columnNumber: 9
774
777
  }
775
778
  }));
@@ -780,14 +783,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
780
783
  __self: _this,
781
784
  __source: {
782
785
  fileName: _jsxFileName,
783
- lineNumber: 1079,
786
+ lineNumber: 1081,
784
787
  columnNumber: 7
785
788
  }
786
789
  }, _react["default"].createElement(FooterComponent, {
787
790
  __self: _this,
788
791
  __source: {
789
792
  fileName: _jsxFileName,
790
- lineNumber: 1080,
793
+ lineNumber: 1082,
791
794
  columnNumber: 9
792
795
  }
793
796
  }));
@@ -798,14 +801,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
798
801
  __self: _this,
799
802
  __source: {
800
803
  fileName: _jsxFileName,
801
- lineNumber: 1088,
804
+ lineNumber: 1090,
802
805
  columnNumber: 7
803
806
  }
804
807
  }, _react["default"].createElement(HeaderComponent, {
805
808
  __self: _this,
806
809
  __source: {
807
810
  fileName: _jsxFileName,
808
- lineNumber: 1089,
811
+ lineNumber: 1091,
809
812
  columnNumber: 9
810
813
  }
811
814
  }));
@@ -817,7 +820,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
817
820
  __self: _this,
818
821
  __source: {
819
822
  fileName: _jsxFileName,
820
- lineNumber: 1099,
823
+ lineNumber: 1101,
821
824
  columnNumber: 7
822
825
  }
823
826
  }, _react["default"].createElement(LoadingIndicator, {
@@ -825,7 +828,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
825
828
  __self: _this,
826
829
  __source: {
827
830
  fileName: _jsxFileName,
828
- lineNumber: 1100,
831
+ lineNumber: 1102,
829
832
  columnNumber: 9
830
833
  }
831
834
  }));
@@ -837,7 +840,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
837
840
  __self: _this,
838
841
  __source: {
839
842
  fileName: _jsxFileName,
840
- lineNumber: 1107,
843
+ lineNumber: 1109,
841
844
  columnNumber: 30
842
845
  }
843
846
  });
@@ -846,7 +849,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
846
849
  __self: _this,
847
850
  __source: {
848
851
  fileName: _jsxFileName,
849
- lineNumber: 1108,
852
+ lineNumber: 1110,
850
853
  columnNumber: 46
851
854
  }
852
855
  });
@@ -867,7 +870,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
867
870
  __self: _this,
868
871
  __source: {
869
872
  fileName: _jsxFileName,
870
- lineNumber: 1124,
873
+ lineNumber: 1126,
871
874
  columnNumber: 5
872
875
  }
873
876
  }, _react["default"].createElement(FlatList, (0, _extends2["default"])({
@@ -904,7 +907,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
904
907
  __self: _this,
905
908
  __source: {
906
909
  fileName: _jsxFileName,
907
- lineNumber: 1128,
910
+ lineNumber: 1130,
908
911
  columnNumber: 7
909
912
  }
910
913
  })), !loading && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
@@ -912,28 +915,28 @@ var MessageListWithContext = function MessageListWithContext(props) {
912
915
  __self: _this,
913
916
  __source: {
914
917
  fileName: _jsxFileName,
915
- lineNumber: 1179,
918
+ lineNumber: 1181,
916
919
  columnNumber: 11
917
920
  }
918
921
  }, _react["default"].createElement(StickyHeaderComponent, {
919
922
  __self: _this,
920
923
  __source: {
921
924
  fileName: _jsxFileName,
922
- lineNumber: 1180,
925
+ lineNumber: 1182,
923
926
  columnNumber: 13
924
927
  }
925
928
  })), !disableTypingIndicator && TypingIndicator && _react["default"].createElement(TypingIndicatorContainer, {
926
929
  __self: _this,
927
930
  __source: {
928
931
  fileName: _jsxFileName,
929
- lineNumber: 1183,
932
+ lineNumber: 1185,
930
933
  columnNumber: 13
931
934
  }
932
935
  }, _react["default"].createElement(TypingIndicator, {
933
936
  __self: _this,
934
937
  __source: {
935
938
  fileName: _jsxFileName,
936
- lineNumber: 1184,
939
+ lineNumber: 1186,
937
940
  columnNumber: 15
938
941
  }
939
942
  })), _react["default"].createElement(ScrollToBottomButton, {
@@ -943,14 +946,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
943
946
  __self: _this,
944
947
  __source: {
945
948
  fileName: _jsxFileName,
946
- lineNumber: 1187,
949
+ lineNumber: 1189,
947
950
  columnNumber: 11
948
951
  }
949
952
  })), _react["default"].createElement(NetworkDownIndicator, {
950
953
  __self: _this,
951
954
  __source: {
952
955
  fileName: _jsxFileName,
953
- lineNumber: 1194,
956
+ lineNumber: 1196,
954
957
  columnNumber: 7
955
958
  }
956
959
  }));
@@ -1057,7 +1060,7 @@ var MessageList = function MessageList(props) {
1057
1060
  __self: _this,
1058
1061
  __source: {
1059
1062
  fileName: _jsxFileName,
1060
- lineNumber: 1252,
1063
+ lineNumber: 1254,
1061
1064
  columnNumber: 5
1062
1065
  }
1063
1066
  }));