Fetch read marker before backlog for user targets
This commit is contained in:
parent
e7b69cec9a
commit
4780b9c709
2 changed files with 11 additions and 0 deletions
|
@ -1128,6 +1128,12 @@ export default class App extends Component {
|
|||
from = receiptFromMessage(lastMsg);
|
||||
}
|
||||
|
||||
// Query read marker if this is a user (ie, we haven't received
|
||||
// the read marker as part of a JOIN burst)
|
||||
if (client.supportsReadMarker() && client.isNick(target.name)) {
|
||||
client.fetchReadMarker(target.name);
|
||||
}
|
||||
|
||||
client.fetchHistoryBetween(target.name, from, to, CHATHISTORY_MAX_SIZE).then((result) => {
|
||||
for (let msg of result.messages) {
|
||||
let destBuffers = this.routeMessage(serverID, msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue