fix(call): update call history management to reflect no more available history

This commit is contained in:
2026-01-04 23:41:14 -06:00
parent f2bbff5c3d
commit c2652f72f5
3 changed files with 13 additions and 7 deletions

View File

@@ -2116,7 +2116,7 @@ export default {
callHistorySearch: "",
callHistoryLimit: 10,
callHistoryOffset: 0,
hasMoreCallHistory: true,
hasMoreCallHistory: false,
isCallEnded: false,
wasDeclined: false,
wasVoicemail: false,
@@ -2643,7 +2643,6 @@ export default {
try {
if (!loadMore) {
this.callHistoryOffset = 0;
this.hasMoreCallHistory = true;
}
const response = await window.axios.get(

View File

@@ -375,7 +375,10 @@
/>
</div>
<div v-if="['RNodeInterface', 'RNodeIPInterface'].includes(newInterfaceType)" class="mb-2 flex flex-wrap items-start gap-4">
<div
v-if="['RNodeInterface', 'RNodeIPInterface'].includes(newInterfaceType)"
class="mb-2 flex flex-wrap items-start gap-4"
>
<!-- interface spreading factor -->
<div class="flex-1">
<FormLabel class="mb-1">Spreading Factor</FormLabel>
@@ -1503,9 +1506,9 @@ export default {
airtime_limit_long: this.newInterfaceAirtimeLimitLong,
airtime_limit_short: this.newInterfaceAirtimeLimitShort,
// settings that can be added to any interface type
mode: this.sharedInterfaceSettings.mode || "full",
bitrate: this.sharedInterfaceSettings.bitrate,
// settings that can be added to any interface type
mode: this.sharedInterfaceSettings.mode || "full",
bitrate: this.sharedInterfaceSettings.bitrate,
network_name: this.sharedInterfaceSettings.network_name,
passphrase: this.sharedInterfaceSettings.passphrase,
ifac_size: this.sharedInterfaceSettings.ifac_size,

View File

@@ -136,6 +136,7 @@ export default {
conversationRefreshTimeout: null,
config: null,
hasLoadedConversations: false,
peers: {},
selectedPeer: null,
@@ -348,7 +349,9 @@ export default {
},
async getConversations(append = false) {
try {
if (this.conversations.length === 0 && !append) {
const shouldShowInitialLoading =
!append && !this.hasLoadedConversations && this.conversations.length === 0;
if (shouldShowInitialLoading) {
this.isLoadingConversations = true;
}
@@ -368,6 +371,7 @@ export default {
this.conversations = newConversations;
}
this.hasLoadedConversations = true;
this.hasMoreConversations = newConversations.length === this.pageSize;
} catch (e) {
console.log(e);