4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 09:45:52 +00:00

Merge pull request #338 from AlphaX-Qortal/master

Fix expiry date for invites
This commit is contained in:
AlphaX 2025-01-29 18:31:55 +01:00 committed by GitHub
commit 4d35a7d6c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ class LogoutView extends connect(store)(LitElement) {
}
async confirm(e) {
localStorage.removeItem("symKeysCurrent")
store.dispatch(doLogout())
e.stopPropagation()
}

View File

@ -801,7 +801,7 @@ class GroupManagement extends LitElement {
const currentTime = Date.now()
this.myOpenInvites.forEach(a => {
let expiry = a.timestamp + a.timeToLive
let expiry = a.timestamp + (a.timeToLive * 1000)
if (expiry > currentTime || a.timeToLive === 0) {
let invitedGroupInfoUrl = `${nodeUrl}/groups/${a.groupId}`