Skip to content

Commit 22b27a3

Browse files
author
Igor Khomenko
committed
Merge branch 'develop' into gh-pages
2 parents 75f7296 + 36b0ed8 commit 22b27a3

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "1.15.0",
4+
"version": "1.15.1",
55
"homepage": "http://quickblox.com/developers/Javascript",
66
"main": "quickblox.js",
77
"license": "MIT",

js/modules/qbChat.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ function ChatProxy(service, webrtcModule, conn) {
139139
extension: extraParamsParsed ? extraParamsParsed.extension : null,
140140
delay: delay
141141
};
142+
if (markable) {
143+
message.markable = 1;
144+
}
142145
if (typeof self.onMessageListener === 'function' && (type === 'chat' || type === 'groupchat')){
143146
self.onMessageListener(userId, message);
144147
}
@@ -407,7 +410,8 @@ ChatProxy.prototype = {
407410
}
408411

409412
// chat markers
410-
if (message.type === 'chat') {
413+
//
414+
if (message.markable) {
411415
msg.c('markable', {
412416
xmlns: Strophe.NS.CHAT_MARKERS
413417
});

js/qbConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
var config = {
9-
version: '1.15.0',
9+
version: '1.15.1',
1010
creds: {
1111
appId: '',
1212
authKey: '',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "1.15.0",
4+
"version": "1.15.1",
55
"homepage": "http://quickblox.com/developers/Javascript",
66
"main": "js/qbMain.js",
77
"license": [

quickblox.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* QuickBlox JavaScript SDK - v1.15.0 - 2015-10-16 */
1+
/* QuickBlox JavaScript SDK - v1.15.1 - 2015-10-16 */
22

33
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.QB = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
44
/*
@@ -282,6 +282,9 @@ function ChatProxy(service, webrtcModule, conn) {
282282
extension: extraParamsParsed ? extraParamsParsed.extension : null,
283283
delay: delay
284284
};
285+
if (markable) {
286+
message.markable = 1;
287+
}
285288
if (typeof self.onMessageListener === 'function' && (type === 'chat' || type === 'groupchat')){
286289
self.onMessageListener(userId, message);
287290
}
@@ -550,7 +553,8 @@ ChatProxy.prototype = {
550553
}
551554

552555
// chat markers
553-
if (message.type === 'chat') {
556+
//
557+
if (message.markable) {
554558
msg.c('markable', {
555559
xmlns: Strophe.NS.CHAT_MARKERS
556560
});
@@ -2850,7 +2854,7 @@ Blob.prototype.download = function() {
28502854
*/
28512855

28522856
var config = {
2853-
version: '1.15.0',
2857+
version: '1.15.1',
28542858
creds: {
28552859
appId: '',
28562860
authKey: '',

quickblox.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/QB-ChatSpec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('QuickBlox SDK - Chat module', function() {
3939
param2: "value2"
4040
});
4141
expect(receivedMessage.id).toEqual(self.messageId);
42+
expect(receivedMessage.markable).toEqual(1);
4243
self.messageId = null;
4344

4445
done();
@@ -49,7 +50,8 @@ describe('QuickBlox SDK - Chat module', function() {
4950
extension: {
5051
param1: "value1",
5152
param2: "value2"
52-
}
53+
},
54+
markable: 1
5355
};
5456
QB.chat.send(QBUser1.id, message);
5557
this.messageId = message.id;

0 commit comments

Comments
 (0)