mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Break after getting timestamp
This commit is contained in:
@@ -360,6 +360,7 @@ export default class InviteDialog extends React.PureComponent {
|
|||||||
const ev = room.timeline[i];
|
const ev = room.timeline[i];
|
||||||
if (searchTypes.includes(ev.getType())) {
|
if (searchTypes.includes(ev.getType())) {
|
||||||
lastEventTs = ev.getTs();
|
lastEventTs = ev.getTs();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (room.timeline.length - i > maxSearchEvents) break;
|
if (room.timeline.length - i > maxSearchEvents) break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user