Make use of destBuffers when fetching history.

Fixes an issue where messages intended to go on the server's buffer end up on their own
This commit is contained in:
xse 2022-08-22 12:35:59 +02:00 committed by Simon Ser
parent 7138e43710
commit cfbd91d257

View file

@ -1132,7 +1132,7 @@ export default class App extends Component {
for (let msg of result.messages) {
let destBuffers = this.routeMessage(serverID, msg);
for (let bufName of destBuffers) {
this.addMessage(serverID, target.name, msg);
this.addMessage(serverID, bufName, msg);
}
}
}).catch((err) => {