mirror of
https://codeberg.org/emersion/gamja
synced 2025-04-22 09:24:28 +02:00
Ignore server buffer in latestReceipt
When we've received RPL_WELCOME, latestReceipt will return the current time if we don't filter out the server buffer.
This commit is contained in:
parent
e283d9c7ab
commit
b14cddc0d0
@ -364,6 +364,9 @@ export default class App extends Component {
|
|||||||
latestReceipt(type) {
|
latestReceipt(type) {
|
||||||
let last = null;
|
let last = null;
|
||||||
this.receipts.forEach((receipts, target) => {
|
this.receipts.forEach((receipts, target) => {
|
||||||
|
if (target === "*") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let delivery = receipts[type];
|
let delivery = receipts[type];
|
||||||
if (!delivery || !delivery.time) {
|
if (!delivery || !delivery.time) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user