Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
254b7d72
Commit
254b7d72
authored
15 years ago
by
Igor Borovkov
Browse files
Options
Downloads
Patches
Plain Diff
fixed EXT-4601 [BSI] New IM sessions use obsolete timestamps for first message
--HG-- branch : product-engine
parent
e3e4a301
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llchathistory.cpp
+3
-2
3 additions, 2 deletions
indra/newview/llchathistory.cpp
indra/newview/llchathistory.h
+2
-0
2 additions, 0 deletions
indra/newview/llchathistory.h
with
5 additions
and
2 deletions
indra/newview/llchathistory.cpp
+
3
−
2
View file @
254b7d72
...
...
@@ -550,8 +550,8 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
if
(
mLastFromName
==
chat
.
mFromName
&&
mLastFromID
==
chat
.
mFromID
&&
mLastMessageTime
.
notNull
()
&&
(
new_message_time
.
secondsSinceEpoch
()
-
mLastMessageTime
.
secondsSinceEpoch
())
<
60.0
)
&&
(
new_message_time
.
secondsSinceEpoch
()
-
mLastMessageTime
.
secondsSinceEpoch
())
<
60.0
&&
mLastMessageTimeStr
.
size
()
==
chat
.
mTimeStr
.
size
())
//*HACK to distinguish between current and previous chat session's histories
{
view
=
getSeparator
();
p
.
top_pad
=
mTopSeparatorPad
;
...
...
@@ -585,6 +585,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
mLastFromName
=
chat
.
mFromName
;
mLastFromID
=
chat
.
mFromID
;
mLastMessageTime
=
new_message_time
;
mLastMessageTimeStr
=
chat
.
mTimeStr
;
}
std
::
string
message
=
irc_me
?
chat
.
mText
.
substr
(
3
)
:
chat
.
mText
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llchathistory.h
+
2
−
0
View file @
254b7d72
...
...
@@ -125,6 +125,8 @@ class LLChatHistory : public LLUICtrl
std
::
string
mLastFromName
;
LLUUID
mLastFromID
;
LLDate
mLastMessageTime
;
std
::
string
mLastMessageTimeStr
;
std
::
string
mMessageHeaderFilename
;
std
::
string
mMessageSeparatorFilename
;
...
...
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