minor changes

This commit is contained in:
grimhilt
2023-04-14 18:37:01 +02:00
parent b48c834d36
commit 5b62fce48a
7 changed files with 12 additions and 6 deletions

View File

@@ -146,6 +146,7 @@ describe("saveMessage", () => {
await register.save();
// the owner of the room will be the recipient (not us)
expect(createOrRegisterOnExistence).toHaveBeenCalledWith(db.users[1].id, RoomType.DM);
});
it("should create a GROUP when there is a new first message from us to multiple recipients", async () => {

View File

@@ -29,7 +29,7 @@ export default class saveMessageDatabase {
this.rooms = [];
this.messages = [];
this.room_message = [];
this.users = generateUsers(5); // todo
this.users = _users;
this.roomId = 0;
}