Merge branch 'unstable' into userconfig_disappearingmessage

pull/2861/head
William Grant 2 years ago
parent 905fe5aab9
commit 10561e4e3c

@ -1,10 +1,12 @@
# Session Desktop # Session Desktop
[Download at getsession.org](https://getsession.org/download)
## Summary ## Summary
Session integrates directly with [Oxen Service Nodes](https://docs.oxen.io/about-the-oxen-blockchain/oxen-service-nodes), which are a set of distributed, decentralized and Sybil resistant nodes. Service Nodes act as servers which store messages offline, and a set of nodes which allow for onion routing functionality obfuscating users IP Addresses. For a full understanding of how Session works, read the [Session Whitepaper](https://getsession.org/whitepaper). Session integrates directly with [Oxen Service Nodes](https://docs.oxen.io/about-the-oxen-blockchain/oxen-service-nodes), which are a set of distributed, decentralized and Sybil resistant nodes. Service Nodes act as servers which store messages offline, and a set of nodes which allow for onion routing functionality obfuscating users IP Addresses. For a full understanding of how Session works, read the [Session Whitepaper](https://getsession.org/whitepaper).
<br/><br/> <br/><br/>
![DesktopSession](https://i.imgur.com/ZnHvYjo.jpg) ![DesktopSession](https://i.imgur.com/ydVhH00.png)
## Want to Contribute? Found a Bug or Have a feature request? ## Want to Contribute? Found a Bug or Have a feature request?

@ -470,16 +470,13 @@ class CompositionBoxInner extends React.Component<Props, State> {
if (left) { if (left) {
return i18n('youLeftTheGroup'); return i18n('youLeftTheGroup');
} }
if (isBlocked && isPrivate) { if (isBlocked) {
return i18n('unblockToSend'); return i18n('unblockToSend');
} }
if (isBlocked && !isPrivate) {
return i18n('unblockGroupToSend');
}
return i18n('sendMessage'); return i18n('sendMessage');
}; };
const { isKickedFromGroup, left, isPrivate, isBlocked } = this.props.selectedConversation; const { isKickedFromGroup, left, isBlocked } = this.props.selectedConversation;
const messagePlaceHolder = makeMessagePlaceHolderText(); const messagePlaceHolder = makeMessagePlaceHolderText();
const { typingEnabled } = this.props; const { typingEnabled } = this.props;
const neverMatchingRegex = /($a)/; const neverMatchingRegex = /($a)/;
@ -856,14 +853,10 @@ class CompositionBoxInner extends React.Component<Props, State> {
return; return;
} }
if (selectedConversation.isBlocked && selectedConversation.isPrivate) { if (selectedConversation.isBlocked) {
ToastUtils.pushUnblockToSend(); ToastUtils.pushUnblockToSend();
return; return;
} }
if (selectedConversation.isBlocked && !selectedConversation.isPrivate) {
ToastUtils.pushUnblockToSendGroup();
return;
}
// Verify message length // Verify message length
const msgLen = messagePlaintext?.length || 0; const msgLen = messagePlaintext?.length || 0;
if (msgLen === 0 && this.props.stagedAttachments?.length === 0) { if (msgLen === 0 && this.props.stagedAttachments?.length === 0) {

@ -201,10 +201,6 @@ export function pushUnblockToSend() {
pushToastInfo('unblockToSend', window.i18n('unblockToSend')); pushToastInfo('unblockToSend', window.i18n('unblockToSend'));
} }
export function pushUnblockToSendGroup() {
pushToastInfo('unblockGroupToSend', window.i18n('unblockGroupToSend'));
}
export function pushYouLeftTheGroup() { export function pushYouLeftTheGroup() {
pushToastError('youLeftTheGroup', window.i18n('youLeftTheGroup')); pushToastError('youLeftTheGroup', window.i18n('youLeftTheGroup'));
} }

@ -25,9 +25,9 @@ function cleanUpOtherTest() {
alreadyCleanedWaiting = true; alreadyCleanedWaiting = true;
const parentFolderOfAllDataPath = isMacOS() const parentFolderOfAllDataPath = isMacOS()
? '~/Library/Application Support/' ? join(homedir(), 'Library', 'Application Support')
: isLinux() : isLinux()
? `${homedir()}/.config/` ? join(homedir(), '.config')
: null; : null;
if (!parentFolderOfAllDataPath) { if (!parentFolderOfAllDataPath) {
throw new Error('Only macOS is currrently supported '); throw new Error('Only macOS is currrently supported ');

Loading…
Cancel
Save