mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Only updating approval when it is a true value as we consider a block a decline.
This commit is contained in:
parent
9c9a43ee97
commit
23ca19b125
|
@ -1517,7 +1517,7 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|||
}
|
||||
|
||||
public isApproved() {
|
||||
return Boolean(this.get('isApproved'));
|
||||
return this.get('isApproved');
|
||||
}
|
||||
|
||||
public getTitle() {
|
||||
|
|
|
@ -125,7 +125,11 @@ const handleContactReceived = async (
|
|||
// updateProfile will do a commit for us
|
||||
contactConvo.set('active_at', _.toNumber(envelope.timestamp));
|
||||
|
||||
if (window.lokiFeatureFlags.useMessageRequests === true && window.inboxStore?.getState().userConfig.messageRequests) {
|
||||
if (
|
||||
window.lokiFeatureFlags.useMessageRequests === true &&
|
||||
window.inboxStore?.getState().userConfig.messageRequests &&
|
||||
contactReceived.isApproved === true
|
||||
) {
|
||||
contactConvo.setIsApproved(Boolean(contactReceived.isApproved));
|
||||
|
||||
if (contactReceived.isBlocked === true) {
|
||||
|
|
Loading…
Reference in a new issue