Fix ignored MARKREAD messages

The prefix is a remnant of the soju extension. The IRCv3 one
doesn't have it.

Fixes: 1428ec4d49 ("Add support for draft/read-marker")
This commit is contained in:
Simon Ser 2022-09-03 14:35:49 +02:00
parent 4780b9c709
commit aa9aa78d71

View file

@ -1034,7 +1034,7 @@ export default class App extends Component {
case "READ":
target = msg.params[0];
let bound = msg.params[1];
if (!client.isMyNick(msg.prefix.name) || bound === "*" || !bound.startsWith("timestamp=")) {
if (bound === "*" || !bound.startsWith("timestamp=")) {
break;
}
let readReceipt = { time: bound.replace("timestamp=", "") };