mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-26 01:35:22 +02:00
Send Accept-Language when connecting a chat socket
This commit is contained in:
@@ -317,7 +317,9 @@ describe('chat service api', () => {
|
||||
onConnectionInterrupted: (...args: [unknown]) =>
|
||||
onInterrupted.resolve(args),
|
||||
};
|
||||
const chat = await net.connectUnauthenticatedChat(listener);
|
||||
const chat = await net.connectUnauthenticatedChat(listener, {
|
||||
languages: ['en'],
|
||||
});
|
||||
await chat.disconnect();
|
||||
await onInterrupted;
|
||||
expect(onInterrupted.resolvedValue).to.eql([null]);
|
||||
|
||||
Reference in New Issue
Block a user