feat: Add slashcommand api
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
Injector,
|
||||
runInInjectionContext
|
||||
} from '@angular/core';
|
||||
import { Injector, runInInjectionContext } from '@angular/core';
|
||||
import {
|
||||
beforeEach,
|
||||
describe,
|
||||
@@ -35,10 +32,12 @@ describe('DatabaseService', () => {
|
||||
getBansForRoom: vi.fn(() => Promise.resolve([])),
|
||||
initialize: vi.fn(() => Promise.resolve())
|
||||
};
|
||||
|
||||
capacitorDatabase = {
|
||||
getBansForRoom: vi.fn(() => Promise.resolve([])),
|
||||
initialize: vi.fn(() => Promise.resolve())
|
||||
};
|
||||
|
||||
electronDatabase = {
|
||||
getBansForRoom: vi.fn(() => Promise.resolve([])),
|
||||
initialize: vi.fn(() => Promise.resolve())
|
||||
|
||||
@@ -135,7 +135,9 @@ export class DatabaseService {
|
||||
saveReaction(reaction: Reaction) { return this.withReady(() => this.backend.saveReaction(reaction)); }
|
||||
|
||||
/** Remove a specific reaction (user + emoji + message). */
|
||||
removeReaction(messageId: string, userId: string, emoji: string) { return this.withReady(() => this.backend.removeReaction(messageId, userId, emoji)); }
|
||||
removeReaction(messageId: string, userId: string, emoji: string) {
|
||||
return this.withReady(() => this.backend.removeReaction(messageId, userId, emoji));
|
||||
}
|
||||
|
||||
/** Return all reactions for a given message. */
|
||||
getReactionsForMessage(messageId: string) { return this.withReady(() => this.backend.getReactionsForMessage(messageId)); }
|
||||
|
||||
Reference in New Issue
Block a user