Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
solid-xmpp-chat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Components
solid-xmpp-chat
Commits
bc4a95b4
Commit
bc4a95b4
authored
4 years ago
by
ubermanu
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: fix the oldest message reference
parent
dcce55a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!113
History, Reply to messages and RAI
,
!111
History loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/sib-history-improved.js
+1
-1
1 addition, 1 deletion
src/plugins/sib-history-improved.js
with
1 addition
and
1 deletion
src/plugins/sib-history-improved.js
+
1
−
1
View file @
bc4a95b4
...
@@ -71,7 +71,7 @@ converse.plugins.add('sib-history-improved', {
...
@@ -71,7 +71,7 @@ converse.plugins.add('sib-history-improved', {
log
.
debug
(
`Chatbox needs more messages, count:
${
counter
}
`
);
log
.
debug
(
`Chatbox needs more messages, count:
${
counter
}
`
);
const
is_groupchat
=
data
.
chatbox
.
get
(
'
type
'
)
===
converse
.
CHATROOMS_TYPE
;
const
is_groupchat
=
data
.
chatbox
.
get
(
'
type
'
)
===
converse
.
CHATROOMS_TYPE
;
const
oldest_message
=
messages
.
pop
()
;
const
oldest_message
=
messages
[
0
]
||
null
;
if
(
oldest_message
)
{
if
(
oldest_message
)
{
const
by_jid
=
is_groupchat
?
data
.
chatbox
.
get
(
'
jid
'
)
:
_converse
.
bare_jid
;
const
by_jid
=
is_groupchat
?
data
.
chatbox
.
get
(
'
jid
'
)
:
_converse
.
bare_jid
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment