remove isOnline unused

pull/1424/head
Audric Ackermann 4 years ago
parent 6cf838ade8
commit 8e9de59a42
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -65,7 +65,6 @@ export interface ConversationModel
isRss: () => boolean; isRss: () => boolean;
isBlocked: () => boolean; isBlocked: () => boolean;
isClosable: () => boolean; isClosable: () => boolean;
isOnline: () => boolean;
isModerator: (id?: string) => boolean; isModerator: (id?: string) => boolean;
throttledBumpTyping: () => void; throttledBumpTyping: () => void;

@ -56,7 +56,6 @@
sessionResetStatus: SessionResetEnum.none, sessionResetStatus: SessionResetEnum.none,
groupAdmins: [], groupAdmins: [],
isKickedFromGroup: false, isKickedFromGroup: false,
isOnline: false,
profileSharing: false, profileSharing: false,
}; };
}, },
@ -155,10 +154,6 @@
this.on('change', generateProps); this.on('change', generateProps);
generateProps(); generateProps();
}, },
isOnline() {
return this.isMe() || this.get('isOnline');
},
isMe() { isMe() {
return this.isOurLocalDevice() || this.isOurPrimaryDevice(); return this.isOurLocalDevice() || this.isOurPrimaryDevice();
}, },
@ -511,7 +506,6 @@
text: this.get('lastMessage'), text: this.get('lastMessage'),
isRss: this.isRss(), isRss: this.isRss(),
}, },
isOnline: this.isOnline(),
hasNickname: !!this.getNickname(), hasNickname: !!this.getNickname(),
isKickedFromGroup: !!this.get('isKickedFromGroup'), isKickedFromGroup: !!this.get('isKickedFromGroup'),
leftGroup: !!this.get('left'), leftGroup: !!this.get('left'),

@ -50,7 +50,6 @@ export type ConversationListItemProps = {
}; };
isBlocked?: boolean; isBlocked?: boolean;
isOnline?: boolean;
hasNickname?: boolean; hasNickname?: boolean;
isSecondary?: boolean; isSecondary?: boolean;
isGroupInvitation?: boolean; isGroupInvitation?: boolean;

@ -60,7 +60,6 @@ interface Props {
hasNickname?: boolean; hasNickname?: boolean;
isBlocked: boolean; isBlocked: boolean;
isOnline?: boolean;
isKickedFromGroup: boolean; isKickedFromGroup: boolean;
selectionMode: boolean; // is the UI on the message selection mode or not selectionMode: boolean; // is the UI on the message selection mode or not

@ -442,7 +442,6 @@ export class SessionConversation extends React.Component<Props, State> {
isBlocked: conversation.isBlocked(), isBlocked: conversation.isBlocked(),
isGroup: !conversation.isPrivate(), isGroup: !conversation.isPrivate(),
isPrivate: conversation.isPrivate(), isPrivate: conversation.isPrivate(),
isOnline: conversation.isOnline(),
isPublic: conversation.isPublic(), isPublic: conversation.isPublic(),
isRss: conversation.isRss(), isRss: conversation.isRss(),
amMod: conversation.isModerator( amMod: conversation.isModerator(

Loading…
Cancel
Save