fix typo, bump versin and rebuild

This commit is contained in:
or-else
2019-07-26 11:48:19 +03:00
parent 81c789b713
commit 7239aae8aa
7 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "tinode-webapp", "name": "tinode-webapp",
"description": "Tinode messenger for the web", "description": "Tinode messenger for the web",
"version": "0.16.0-rc3", "version": "0.16.0-rc4",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/tinode/example-react-js.git" "url": "https://github.com/tinode/example-react-js.git"
+1 -1
View File
@@ -1,3 +1,3 @@
// This is a generated file. Don't edit. // This is a generated file. Don't edit.
export const PACKAGE_VERSION = "0.16.0-rc3"; export const PACKAGE_VERSION = "0.16.0-rc4";
+1 -1
View File
@@ -545,7 +545,7 @@ class TinodeWeb extends React.Component {
// Skip update if the topic is currently open, otherwise the badge will annoyingly flash. // Skip update if the topic is currently open, otherwise the badge will annoyingly flash.
} else if (this.state.topicSelected != cont.topic) { } else if (this.state.topicSelected != cont.topic) {
if (this.state.messageSounds !isArchived) { if (this.state.messageSounds && !isArchived) {
POP_SOUND.play(); POP_SOUND.play();
} }
this.resetContactList(); this.resetContactList();
+12 -5
View File
@@ -857,7 +857,7 @@ module.exports = JSON.parse("{\"en\":{\"archived_contacts\":\"Archived contacts
"use strict"; "use strict";
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PACKAGE_VERSION", function() { return PACKAGE_VERSION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PACKAGE_VERSION", function() { return PACKAGE_VERSION; });
var PACKAGE_VERSION = "0.16.0-rc3"; var PACKAGE_VERSION = "0.16.0-rc4";
/***/ }), /***/ }),
@@ -4757,14 +4757,21 @@ var TinodeWeb = function (_React$Component) {
} else if (what == 'read') { } else if (what == 'read') {
this.resetContactList(); this.resetContactList();
} else if (what == 'msg') { } else if (what == 'msg') {
if (this.state.topicSelected != cont.topic) { var topic = this.tinode.getTopic(cont.topic);
if (this.state.messageSounds) { var archived = topic && topic.isArchived();
if (document.hidden) {
if (this.state.messageSounds && !isArchived) {
POP_SOUND.play();
}
this.resetContactList();
} else if (this.state.topicSelected != cont.topic) {
if (this.state.messageSounds && !isArchived) {
POP_SOUND.play(); POP_SOUND.play();
} }
this.resetContactList(); this.resetContactList();
} else if (document.hidden && this.state.messageSounds) {
POP_SOUND.play();
} }
} else if (what == 'recv') {} else if (what == 'gone' || what == 'unsub') { } else if (what == 'recv') {} else if (what == 'gone' || what == 'unsub') {
if (this.state.topicSelected == cont.topic) { if (this.state.topicSelected == cont.topic) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long