@nyaruka/temba-components 0.173.0 → 0.173.1
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.
- package/CHANGELOG.md +6 -0
- package/dist/temba-components.js +2 -2
- package/dist/temba-components.js.map +1 -1
- package/package.json +1 -1
- package/src/live/ContactChat.ts +3 -10
package/package.json
CHANGED
package/src/live/ContactChat.ts
CHANGED
|
@@ -1302,16 +1302,9 @@ export class ContactChat extends ContactStoreElement {
|
|
|
1302
1302
|
this.chat.reset();
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
//
|
|
1306
|
-
//
|
|
1307
|
-
|
|
1308
|
-
// itself, so its cap is no longer spent on messages this view can't
|
|
1309
|
-
// show — matches from the contact's other tickets can still crowd out
|
|
1310
|
-
// this one's, so the cap isn't per-ticket
|
|
1311
|
-
let url = `/contact/chat_search/${this.currentContact.uuid}/?text=${encodeURIComponent(query)}`;
|
|
1312
|
-
if (this.currentTicket) {
|
|
1313
|
-
url += `&ticket=${encodeURIComponent(this.currentTicket.uuid)}`;
|
|
1314
|
-
}
|
|
1305
|
+
// the chat always shows the contact's full history — even when viewing
|
|
1306
|
+
// a ticket — so search always covers all of the contact's messages
|
|
1307
|
+
const url = `/contact/chat_search/${this.currentContact.uuid}/?text=${encodeURIComponent(query)}`;
|
|
1315
1308
|
|
|
1316
1309
|
getUrl(url)
|
|
1317
1310
|
.then((response: WebResponse) => {
|