Skip to content

Commit

Permalink
removed 25 threadpreview limit from threadlist.php. Added data-displa…
Browse files Browse the repository at this point in the history
…yName to ThreadPreview component for use in upcoming search for conversation feature.
  • Loading branch information
Ian committed Feb 12, 2024
1 parent 555d5c5 commit f9c93a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/components/ThreadPreview/ThreadPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
</script>

<template>
<div class='tr_replace' v-bind:class="currentThread ? 'activeThread' : 'inactiveThread'">
<div class='tr_replace' :data-displayName="this.displayName" v-bind:class="currentThread ? 'activeThread' : 'inactiveThread'">
<div class='td_preview' v-bind:class="currentThread ? 'activeThread' : 'inactiveThread'">
<router-link :to="this.link" class="thread-link" @click="routerLinkClickHandler">
<div class="thread-preview-container" v-bind:class="currentThread ? 'activeThread' : 'inactiveThread'">
Expand Down
14 changes: 8 additions & 6 deletions threadlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@
<?php
$page = 0;
$page_size = 25;
$sql = "SELECT remote_number, group_uuid, last_message FROM webtexting_threads WHERE local_number = :local_number AND domain_uuid = :domain_uuid ORDER BY last_message DESC LIMIT ".$page_size;
if($_GET['page']) {
$sql .= " OFFSET :page";
$page = intval($_GET['page']);
$parameters['page'] = $page*$page_size;
}
$sql = "SELECT remote_number, group_uuid, last_message FROM webtexting_threads WHERE local_number = :local_number AND domain_uuid = :domain_uuid ORDER BY last_message DESC";


// if($_GET['page']) {
// $sql .= " OFFSET :page";
// $page = intval($_GET['page']);
// $parameters['page'] = $page*$page_size;
// }

$parameters['local_number'] = $destination;
$parameters['domain_uuid'] = $domain_uuid;
Expand Down

0 comments on commit f9c93a6

Please sign in to comment.