remove unseen in database
This commit is contained in:
@@ -135,12 +135,6 @@ export default class saveMessageDatabase {
|
||||
return Promise.resolve([{ room_id: room.root_id, root_id: room.root_id }]);
|
||||
};
|
||||
|
||||
incrementNotSeenRoom = (roomId: number): Promise<void> => {
|
||||
const room = this._findRoomById(roomId);
|
||||
if (room) room.notSeen++; // todo
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
findRoomByOwner = (ownerId: number): Promise<{ room_id: number }[]> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const rooms = this.rooms.filter((room) => room.owner_id === ownerId);
|
||||
|
||||
Reference in New Issue
Block a user