cleaning bugs
This commit is contained in:
@@ -254,7 +254,7 @@ export default function AudioHandler() {
|
||||
};
|
||||
|
||||
const keyMap: KeyMap = {
|
||||
SELECT_PRIORITY_CONVO: ["1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
SELECT_PRIORITY_CONVO: ["1", "2", "3", "4", "5", "6", "7", "8"], // todo dynamically map
|
||||
START_RECORDING: {
|
||||
name: "START RECORDING",
|
||||
sequence: "r",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Conversation, {
|
||||
ConversationMember,
|
||||
} from "@nirvana/common/models/conversation";
|
||||
import { User } from "@nirvana/common/models/user";
|
||||
import User from "@nirvana/common/models/user";
|
||||
import Collections from "@nirvana/common/services/collections";
|
||||
import {
|
||||
collection,
|
||||
|
||||
@@ -5,7 +5,7 @@ import Conversation, {
|
||||
Link,
|
||||
ConversationMemberState,
|
||||
} from "@nirvana/common/models/conversation";
|
||||
import { User as NirvanaUser } from "@nirvana/common/models/user";
|
||||
import * as NirvanaUser from "@nirvana/common/models/user";
|
||||
import { conversationService, userService } from "@nirvana/common/services";
|
||||
|
||||
import { atom, DefaultValue, selector, selectorFamily } from "recoil";
|
||||
@@ -53,7 +53,7 @@ export enum RecoilActions {
|
||||
AUDIO_QUEUE_CURRENT_ITEM_SELECTOR = "AUDIO_QUEUE_CURRENT_ITEM_SELECTOR",
|
||||
}
|
||||
|
||||
export const nirvanaUserDataAtom = atom<NirvanaUser | null>({
|
||||
export const nirvanaUserDataAtom = atom<NirvanaUser.default | null>({
|
||||
key: RecoilActions.ALL_COMPLETE_CONVERSATIONS,
|
||||
default: null,
|
||||
});
|
||||
@@ -399,9 +399,9 @@ export const checkIncomingMessageSelector = selectorFamily({
|
||||
|
||||
// map cache of all relevant users
|
||||
// get all of the users in all of the conversations, once through a simple service call
|
||||
export const allRelevantContactsAtom = atom<Map<string, NirvanaUser>>({
|
||||
export const allRelevantContactsAtom = atom<Map<string, NirvanaUser.default>>({
|
||||
key: RecoilActions.ALL_RELEVANT_CONTACTS,
|
||||
default: new Map<string, NirvanaUser>(),
|
||||
default: new Map<string, NirvanaUser.default>(),
|
||||
});
|
||||
|
||||
// todo: useful selector where a component can pass in a list of users
|
||||
|
||||
Reference in New Issue
Block a user