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:
+1
-1
@@ -1034,7 +1034,7 @@ export default class App extends Component {
|
|||||||
case "READ":
|
case "READ":
|
||||||
target = msg.params[0];
|
target = msg.params[0];
|
||||||
let bound = msg.params[1];
|
let bound = msg.params[1];
|
||||||
if (!client.isMyNick(msg.prefix.name) || bound === "*" || !bound.startsWith("timestamp=")) {
|
if (bound === "*" || !bound.startsWith("timestamp=")) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
let readReceipt = { time: bound.replace("timestamp=", "") };
|
let readReceipt = { time: bound.replace("timestamp=", "") };
|
||||||
|
|||||||
Reference in New Issue
Block a user