only handle a single time the groups from a configurationMessage

pull/1528/head
Audric Ackermann 4 years ago
parent 4478d0adea
commit c420bfcf74

@ -105,7 +105,7 @@
.getConversationController()
.get(message.get('conversationId'));
if (conversation) {
conversation.updateLastMessage()
conversation.updateLastMessage();
}
this.remove(receipt);

@ -106,7 +106,7 @@
.getConversationController()
.get(message.get('conversationId'));
if (conversation) {
conversation.updateLastMessage()
conversation.updateLastMessage();
}
this.remove(receipt);

@ -94,6 +94,10 @@
margin-bottom: 5px;
}
}
& .or {
text-align: center;
}
}
&__sections {

@ -90,7 +90,9 @@ const SignInButtons = (props: {
<RestoreUsingRecoveryPhraseButton
onRecoveryButtonClicked={props.onRecoveryButtonClicked}
/>
<div className="spacer-lg" />
<div className="or">{window.i18n('or')}</div>
<div className="spacer-lg" />
<LinkDeviceButton
onLinkDeviceButtonClicked={props.onLinkDeviceButtonClicked}
/>

@ -1,5 +1,9 @@
import _ from 'lodash';
import { getItemById, hasSyncedInitialConfigurationItem } from '../data/data';
import {
createOrUpdateItem,
getItemById,
hasSyncedInitialConfigurationItem,
} from '../data/data';
import { SignalService } from '../protobuf';
import { ConversationController } from '../session/conversations';
import { OpenGroup } from '../session/types';
@ -56,12 +60,10 @@ async function handleGroupsAndContactsFromConfigMessage(
);
return;
}
if (didWeHandleAConfigurationMessageAlready) {
window?.log?.warn(
'Dropping configuration change as we already handled one... '
);
return;
}
await createOrUpdateItem({
id: 'hasSyncedInitialConfigurationItem',
value: true,
});
const numberClosedGroup = configMessage.closedGroups?.length || 0;

Loading…
Cancel
Save