removing comments

pull/2174/head
warrickct 3 years ago
parent 30a1221b4d
commit 451fb351a3

@ -40,6 +40,7 @@ import {
import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton'; import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
import { SessionIconButton } from '../icon'; import { SessionIconButton } from '../icon';
import { ConversationHeaderMenu } from '../menu/ConversationHeaderMenu'; import { ConversationHeaderMenu } from '../menu/ConversationHeaderMenu';
import { Flex } from '../basic/Flex';
export interface TimerOption { export interface TimerOption {
name: string; name: string;
@ -366,7 +367,7 @@ export const ConversationHeaderWithDetails = () => {
</div> </div>
{!isSelectionMode && ( {!isSelectionMode && (
<ConversationHeaderRightContainer> <Flex flexDirection="row" alignItems="center">
{!isKickedFromGroup && ( {!isKickedFromGroup && (
<ExpirationLength expirationSettingName={expirationSettingName} /> <ExpirationLength expirationSettingName={expirationSettingName} />
)} )}
@ -378,7 +379,7 @@ export const ConversationHeaderWithDetails = () => {
pubkey={selectedConvoKey} pubkey={selectedConvoKey}
showBackButton={isMessageDetailOpened} showBackButton={isMessageDetailOpened}
/> />
</ConversationHeaderRightContainer> </Flex>
)} )}
<ConversationHeaderMenu triggerId={triggerId} /> <ConversationHeaderMenu triggerId={triggerId} />
@ -388,9 +389,3 @@ export const ConversationHeaderWithDetails = () => {
</div> </div>
); );
}; };
export const ConversationHeaderRightContainer = styled.div`
display: flex;
flex-direction: row;
align-items: center;
`;

@ -59,9 +59,6 @@ async function handleGroupsAndContactsFromConfigMessage(
const lastConfigTimestamp = lastConfigUpdate?.timestamp; const lastConfigTimestamp = lastConfigUpdate?.timestamp;
const isNewerConfig = lastConfigTimestamp && lastConfigTimestamp < _.toNumber(envelope.timestamp); const isNewerConfig = lastConfigTimestamp && lastConfigTimestamp < _.toNumber(envelope.timestamp);
// const didWeHandleAConfigurationMessageAlready =
// (await getItemById(hasSyncedInitialConfigurationItem))?.value || false;
// if (didWeHandleAConfigurationMessageAlready) {
if (isNewerConfig) { if (isNewerConfig) {
window?.log?.info( window?.log?.info(
'Dropping configuration groups change as we already handled one... Only handling contacts ' 'Dropping configuration groups change as we already handled one... Only handling contacts '
@ -154,7 +151,6 @@ const handleContactReceived = async (
// checking for existence of field on protobuf // checking for existence of field on protobuf
if (contactReceived.isApproved === true) { if (contactReceived.isApproved === true) {
if (!contactConvo.isApproved()) { if (!contactConvo.isApproved()) {
// TODO: add message search in convo for pre-existing msgRequestResponse msg only happens once per convo
await contactConvo.setIsApproved(Boolean(contactReceived.isApproved)); await contactConvo.setIsApproved(Boolean(contactReceived.isApproved));
await contactConvo.addOutgoingApprovalMessage(_.toNumber(envelope.timestamp)); await contactConvo.addOutgoingApprovalMessage(_.toNumber(envelope.timestamp));
} }

@ -353,7 +353,6 @@ export const _getLeftPaneLists = (
directConversations.push(conversation); directConversations.push(conversation);
} }
// if (!conversation.isApproved && !conversation.isBlocked) {
if (!conversation.isApproved) { if (!conversation.isApproved) {
// dont increase unread counter, don't push to convo list. // dont increase unread counter, don't push to convo list.
continue; continue;

Loading…
Cancel
Save