fix typo, bump versin and rebuild
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tinode-webapp",
|
||||
"description": "Tinode messenger for the web",
|
||||
"version": "0.16.0-rc3",
|
||||
"version": "0.16.0-rc4",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tinode/example-react-js.git"
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// This is a generated file. Don't edit.
|
||||
|
||||
export const PACKAGE_VERSION = "0.16.0-rc3";
|
||||
export const PACKAGE_VERSION = "0.16.0-rc4";
|
||||
|
||||
@@ -545,7 +545,7 @@ class TinodeWeb extends React.Component {
|
||||
|
||||
// Skip update if the topic is currently open, otherwise the badge will annoyingly flash.
|
||||
} else if (this.state.topicSelected != cont.topic) {
|
||||
if (this.state.messageSounds !isArchived) {
|
||||
if (this.state.messageSounds && !isArchived) {
|
||||
POP_SOUND.play();
|
||||
}
|
||||
this.resetContactList();
|
||||
|
||||
+12
-5
@@ -857,7 +857,7 @@ module.exports = JSON.parse("{\"en\":{\"archived_contacts\":\"Archived contacts
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* 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') {
|
||||
this.resetContactList();
|
||||
} else if (what == 'msg') {
|
||||
if (this.state.topicSelected != cont.topic) {
|
||||
if (this.state.messageSounds) {
|
||||
var topic = this.tinode.getTopic(cont.topic);
|
||||
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();
|
||||
}
|
||||
|
||||
this.resetContactList();
|
||||
} else if (document.hidden && this.state.messageSounds) {
|
||||
POP_SOUND.play();
|
||||
}
|
||||
} else if (what == 'recv') {} else if (what == 'gone' || what == 'unsub') {
|
||||
if (this.state.topicSelected == cont.topic) {
|
||||
|
||||
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