Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isGroupChat (chat) {
return [
C.DC_CHAT_TYPE_GROUP,
C.DC_CHAT_TYPE_VERIFIED_GROUP
].includes(chat && chat.type)
}
// end section Internal functions
function isGroupChat (chat) {
return [
C.DC_CHAT_TYPE_GROUP,
C.DC_CHAT_TYPE_VERIFIED_GROUP
].includes(chat && chat.type)
}
import React, { useContext } from 'react'
import C from 'deltachat-node/constants'
import styled from 'styled-components'
import Message from './Message'
import ScreenContext from '../../contexts/ScreenContext'
import logger from '../../../logger'
import { useChatStore } from '../../stores/chat'
const log = logger.getLogger('renderer/messageWrapper')
const GROUP_TYPES = [
C.DC_CHAT_TYPE_GROUP,
C.DC_CHAT_TYPE_VERIFIED_GROUP
]
export const InfoMessage = styled.div`
width: 100%;
text-align: center;
margin: 26px 0px;
p {
display: inline-block;
text-align: center;
font-style: italic;
font-weight: bold;
padding: 7px 14px;
background-color: ${props => props.theme.infoMessageBubbleBg};
border-radius: 10px;
opacity: 0.44;