1
0
Fork 0
mirror of https://git.sr.ht/~emersion/gamja synced 2025-03-21 20:50:58 -04: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:
Simon Ser 2021-08-24 13:49:25 +02:00
parent e283d9c7ab
commit b14cddc0d0

View file

@ -364,6 +364,9 @@ export default class App extends Component {
latestReceipt(type) {
let last = null;
this.receipts.forEach((receipts, target) => {
if (target === "*") {
return;
}
let delivery = receipts[type];
if (!delivery || !delivery.time) {
return;