remove resetMessageSelection() as unused and cleanup toast

pull/1381/head
Audric Ackermann 4 years ago
parent 209fe460e4
commit c039c89a26
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -102,6 +102,5 @@ export interface ConversationModel
setSecondaryStatus: any;
queueJob: any;
sendGroupInfo: any;
resetMessageSelection: any;
onUpdateGroupName: any;
}

@ -526,7 +526,6 @@
onCopyPublicKey: () => this.copyPublicKey(),
onDeleteContact: () => this.deleteContact(),
onDeleteMessages: () => this.deleteMessages(),
onCloseOverlay: () => this.resetMessageSelection(),
onInviteContacts: () => {
window.Whisper.events.trigger('inviteContacts', this);
},

@ -533,7 +533,6 @@
this.lastActivity = Date.now();
this.model.updateLastMessage();
this.model.resetMessageSelection();
if (this.model.isRss()) {
$('.compose').hide();

@ -469,7 +469,6 @@ label {
cursor: pointer;
}
.Toastify__toast {
@include themify($themes) {
background: rgba(themed('cellBackground'), 0.99);

@ -11,7 +11,7 @@ const SessionToastContainerPrivate = () => {
newestOnTop={true}
closeOnClick={true}
rtl={false}
pauseOnFocusLoss={true}
pauseOnFocusLoss={false}
draggable={true}
pauseOnHover={true}
transition={Slide}

@ -449,7 +449,6 @@ export class SessionConversation extends React.Component<Props, State> {
onDeleteSelectedMessages: this.deleteSelectedMessages,
onCloseOverlay: () => {
this.setState({ selectedMessages: [] });
conversation.resetMessageSelection();
},
onDeleteContact: () => conversation.deleteContact(),
onResetSession: () => {

@ -60,8 +60,7 @@ export function pushToastSuccess(
description={description}
type={SessionToastType.Success}
icon={icon}
/>,
{ toastId: id }
/>
);
}

Loading…
Cancel
Save