Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
3ea3ac52
Commit
3ea3ac52
authored
May 15, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into plugins-refactor
parents
695dffac
cd759a71
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
Makefile.win
Makefile.win
+3
-3
converse.js
converse.js
+9
-13
No files found.
Makefile.win
View file @
3ea3ac52
# You can set these variables from the command line.
GRUNT
?=
node_modules
\.
bin
\g
runt.cmd
BOWER
?=
node_modules
\.
bin
\b
ower
PHANTOMJS
?=
node_modules
\.
bin
\p
hantomjs
BOWER
?=
node_modules
\.
bin
\b
ower.cmd
PHANTOMJS
?=
node_modules
\.
bin
\p
hantomjs.cmd
SASS
?=
sass
RMRF
?=
rmdir
/q /s
RMF
?=
del /q
HTTPSERVE
?=
./node_modules/.bin/http-server
HTTPSERVE
?=
./node_modules/.bin/http-server
.cmd
.PHONY
:
all help clean css minjs build
...
...
converse.js
View file @
3ea3ac52
...
...
@@ -924,7 +924,7 @@
$message
.
find
(
INACTIVE
).
length
&&
INACTIVE
||
$message
.
find
(
ACTIVE
).
length
&&
ACTIVE
||
$message
.
find
(
GONE
).
length
&&
GONE
,
stamp
,
time
,
sender
,
from
,
createMessage
;
stamp
,
time
,
sender
,
from
;
if
(
is_groupchat
)
{
from
=
Strophe
.
unescapeNode
(
Strophe
.
getResourceFromJid
(
$message
.
attr
(
'
from
'
)));
...
...
@@ -943,11 +943,6 @@
}
else
{
sender
=
'
them
'
;
}
if
(
!
body
)
{
createMessage
=
this
.
messages
.
add
;
}
else
{
createMessage
=
this
.
messages
.
create
;
}
this
.
messages
.
create
({
chat_state
:
chat_state
,
delayed
:
delayed
,
...
...
@@ -3488,11 +3483,11 @@
initialize
:
function
(
attributes
,
options
)
{
var
jid
=
attributes
.
jid
;
this
.
set
(
_
.
extend
({
'
id
'
:
jid
,
'
id
'
:
Strophe
.
getBareJidFromJid
(
jid
)
,
'
fullname
'
:
jid
,
'
chat_status
'
:
'
offline
'
,
'
user_id
'
:
Strophe
.
getNodeFromJid
(
jid
),
'
resources
'
:
[],
'
resources
'
:
[
Strophe
.
getResourceFromJid
(
jid
)
],
'
groups
'
:
[],
'
image_type
'
:
'
image/png
'
,
'
image
'
:
"
iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwE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v3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==
"
,
...
...
@@ -5689,16 +5684,17 @@
};
var
getWrappedChatBox
=
function
(
jid
)
{
var
chatbox
=
converse
.
chatboxes
.
get
(
jid
);
var
bare_jid
=
Strophe
.
getBareJidFromJid
(
jid
);
var
chatbox
=
converse
.
chatboxes
.
get
(
bare_jid
);
if
(
!
chatbox
)
{
var
roster_item
=
converse
.
roster
.
get
(
jid
);
var
roster_item
=
converse
.
roster
.
get
(
bare_
jid
);
if
(
roster_item
===
undefined
)
{
converse
.
log
(
'
Could not get roster item for JID
'
+
jid
,
'
error
'
);
converse
.
log
(
'
Could not get roster item for JID
'
+
bare_
jid
,
'
error
'
);
return
null
;
}
chatbox
=
converse
.
chatboxes
.
create
({
'
id
'
:
jid
,
'
jid
'
:
jid
,
'
id
'
:
bare_
jid
,
'
jid
'
:
bare_
jid
,
'
fullname
'
:
_
.
isEmpty
(
roster_item
.
get
(
'
fullname
'
))?
jid
:
roster_item
.
get
(
'
fullname
'
),
'
image_type
'
:
roster_item
.
get
(
'
image_type
'
),
'
image
'
:
roster_item
.
get
(
'
image
'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment