deep-copy update private and public fields
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+1660
-2953
File diff suppressed because it is too large
Load Diff
+7
-6
@@ -3,16 +3,17 @@
|
||||
"description": "Tinode messenger for the web",
|
||||
"version": "0.15.12",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/core": "^7.2.2",
|
||||
"@babel/preset-env": "^7.3.1",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-loader": "^8.0.5",
|
||||
"babel-plugin-react-intl": "^3.0.1",
|
||||
"browserslist": "^4.4.1",
|
||||
"cssnano": "^4.0.5",
|
||||
"cssnano": "^4.1.8",
|
||||
"postcss": "^7.0.6",
|
||||
"webpack": "^4.23.1",
|
||||
"webpack-cli": "^3.1.2"
|
||||
"uglifyjs-webpack-plugin": "^2.1.1",
|
||||
"webpack": "^4.29.0",
|
||||
"webpack-cli": "^3.2.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
+6
-4
@@ -69,10 +69,12 @@ self.addEventListener('notificationclick', function(event) {
|
||||
|
||||
// This is needed for 'Add to Home Screen'.
|
||||
self.addEventListener('fetch', function(event) {
|
||||
if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') {
|
||||
return;
|
||||
}
|
||||
event.respondWith(
|
||||
console.log("Fetch event", event.request);
|
||||
// Workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=823392
|
||||
if (event.request.cache == 'only-if-cached' && event.request.mode != 'same-origin') {
|
||||
return;
|
||||
}
|
||||
event.respondWith(
|
||||
// Try to find response in cache.
|
||||
caches.match(event.request)
|
||||
.then((resp) => {
|
||||
|
||||
@@ -993,7 +993,7 @@ class TinodeWeb extends React.Component {
|
||||
const topic = this.tinode.getTopic(topicName);
|
||||
const {formatMessage} = this.props.intl;
|
||||
|
||||
let muted = false, blocked = false, subscribed = false, deleter = false;
|
||||
let muted = false, blocked = false, subscribed = false, deleter = false, archived = false;
|
||||
if (topic) {
|
||||
if (topic.isSubscribed()) {
|
||||
subscribed = true;
|
||||
@@ -1003,6 +1003,7 @@ class TinodeWeb extends React.Component {
|
||||
blocked = acs && !acs.isJoiner();
|
||||
deleter = acs && acs.isDeleter();
|
||||
}
|
||||
archived = topic.isArchived();
|
||||
}
|
||||
|
||||
return [
|
||||
@@ -1011,7 +1012,7 @@ class TinodeWeb extends React.Component {
|
||||
subscribed && deleter ? 'messages_clear_hard' : null,
|
||||
subscribed ? (muted ? 'topic_unmute' : 'topic_mute') : null,
|
||||
subscribed ? (blocked ? 'topic_unblock' : 'topic_block') : null,
|
||||
subscribed && !topic.isArchived() ? 'topic_archive' : null,
|
||||
subscribed && !archived ? 'topic_archive' : null,
|
||||
'topic_delete'
|
||||
];
|
||||
}
|
||||
|
||||
+8
-5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user