Current user "Online For" fix, no notes yet

This commit is contained in:
Natsumi
2022-08-16 19:16:12 +12:00
parent 9849c37c27
commit 95c6b21431
2 changed files with 6 additions and 8 deletions

View File

@@ -1384,10 +1384,8 @@ speechSynthesis.getVoices();
} else {
json.location = '';
}
if (json.location && json.location === 'offline') {
json.$online_for = API.currentUser.$online_for;
json.$offline_for = API.currentUser.$offline_for;
}
json.$online_for = API.currentUser.$online_for;
json.$offline_for = API.currentUser.$offline_for;
}
if (typeof json.statusDescription !== 'undefined') {
json.statusDescription = $app.replaceBioSymbols(

View File

@@ -1560,13 +1560,13 @@ html
span.extra(v-else)
timer(:epoch="user.$location_at")
.x-friend-list(style="max-height:none")
//- .x-friend-item(v-if="userDialog.id !== API.currentUser.id" style="width:100%;cursor:default")
//- .detail
//- span.name Note
//- span.extra(v-text="userDialog.ref.note")
.x-friend-item(style="width:100%;cursor:default")
.detail
span.name Note
span.extra(v-text="userDialog.ref.note")
.x-friend-item(style="width:100%;cursor:default")
.detail
span.name Local Note
el-input.extra(v-model="userDialog.memo" type="textarea" :rows="2" :autosize="{ minRows: 1, maxRows: 20 }" placeholder="Click to add a note" size="mini" resize="none")
.x-friend-item(style="width:100%;cursor:default")
.detail