Skip to content

Commit

Permalink
Fix order events
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Feb 3, 2021
1 parent a902fd5 commit d26ebcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/lib/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const update: Handler<UserPresence> = (update) => {
};

const listen = (uid: UserPresence['_id'], handler: Handler<UserPresence>): void => {
emitter.on(uid, handler);
emitter.on(uid, update);
emitter.on(uid, handler);
emitter.on('reset', handler);

if (store.has(uid)) {
Expand Down
2 changes: 1 addition & 1 deletion client/views/room/contextualBar/OTR/OTR.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import OTRModal from './OTRModal';
import { OTR as ORTInstance } from '../../../../../app/otr/client/rocketchat.otr';
import { useTranslation } from '../../../../contexts/TranslationContext';
import VerticalBar from '../../../../components/VerticalBar';
import { usePresence } from '../../../../components/UserStatus';
import { useReactiveValue } from '../../../../hooks/useReactiveValue';
import { usePresence } from '../../../../hooks/usePresence';

export const OTR = ({
isEstablishing,
Expand Down

0 comments on commit d26ebcc

Please sign in to comment.