cozy-search 0.16.2 → 0.16.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.
@@ -35,13 +35,17 @@ var EmailSourceItem = function EmailSourceItem(_ref) {
35
35
  _cozyLogger.default.info('Client not available for EmailSourceItem');
36
36
 
37
37
  return null;
38
- }
38
+ } // FIXME: This prefix removal is a temporary workaround for tmail indexing.
39
+ // The tmail_ prefix have to be removed from tmail indexing
39
40
 
41
+
42
+ var TMAIL_PREFIX = 'tmail_';
43
+ var emailId = email.id.startsWith(TMAIL_PREFIX) ? email.id.slice(TMAIL_PREFIX.length) : email.id;
40
44
  var docUrl = (0, _cozyClient.generateWebLink)({
41
45
  slug: 'mail',
42
46
  cozyUrl: client.getStackClient().uri,
43
47
  subDomainType: client.getInstanceOptions().subdomain,
44
- hash: "/bridge/dashboard/".concat(email.id)
48
+ hash: "/bridge/dashboard/".concat(emailId)
45
49
  });
46
50
  var emailDate = email['datetime'] ? new Date(email['datetime']).toISOString().slice(0, 10) : '';
47
51
  return /*#__PURE__*/_react.default.createElement(_ListItem.default, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cozy-search",
3
3
  "description": "UI components about search bar and IA assistant",
4
- "version": "0.16.2",
4
+ "version": "0.16.4",
5
5
  "author": {
6
6
  "name": "Cozy Cloud",
7
7
  "url": "https://github.com/cozy"
@@ -34,7 +34,7 @@
34
34
  "cozy-pouch-link": "^54.0.0",
35
35
  "cozy-realtime": "^5.8.2",
36
36
  "cozy-ui": "^135.6.0",
37
- "cozy-ui-plus": "^4.5.1",
37
+ "cozy-ui-plus": "^4.6.0",
38
38
  "cross-fetch": "^4.0.0",
39
39
  "jest": "26.6.3",
40
40
  "react": "16.12.0",
@@ -91,5 +91,5 @@
91
91
  "lint": "cd .. && yarn eslint --ext js,jsx,ts packages/cozy-search"
92
92
  },
93
93
  "types": "dist/index.d.ts",
94
- "gitHead": "549503df8a2071ff837e672ad5f7019aa122cb1f"
94
+ "gitHead": "2d647d2d5ce3ed8d20d17ef8ca3e9e477be2743c"
95
95
  }