Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
savoirfairelinux
jami-daemon
Commits
b2c81ecf
Commit
b2c81ecf
authored
13 years ago
by
Rafaël Carré
Browse files
Options
Downloads
Patches
Plain Diff
history : reverse logic
parent
89c6de0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/history/historyitem.cpp
+3
-3
3 additions, 3 deletions
daemon/src/history/historyitem.cpp
daemon/src/history/historyitem.h
+1
-1
1 addition, 1 deletion
daemon/src/history/historyitem.h
with
4 additions
and
4 deletions
daemon/src/history/historyitem.cpp
+
3
−
3
View file @
b2c81ecf
...
...
@@ -152,7 +152,7 @@ std::string HistoryItem::serialize (void)
// For the account ID, check also if the accountID corresponds to an existing account
// ie the account may have been removed
std
::
string
accountID
(
_account_id
);
if
(
_account_id
==
""
||
no
n_
valid_account
(
_account_id
))
if
(
_account_id
==
""
||
no
t
valid_account
(
_account_id
))
accountID
=
"empty"
;
// Serialize it
...
...
@@ -163,7 +163,7 @@ std::string HistoryItem::serialize (void)
}
bool
HistoryItem
::
non_
valid_account
(
std
::
string
id
)
bool
HistoryItem
::
valid_account
(
std
::
string
id
)
{
return
!
Manager
::
instance
().
accountExists
(
id
);
return
Manager
::
instance
().
accountExists
(
id
);
}
This diff is collapsed.
Click to expand it.
daemon/src/history/historyitem.h
+
1
−
1
View file @
b2c81ecf
...
...
@@ -88,7 +88,7 @@ class HistoryItem
/*
* @return true if the account ID corresponds to a loaded account
*/
bool
non_
valid_account
(
std
::
string
);
bool
valid_account
(
std
::
string
);
/*
* Timestamp representing the date of the call
...
...
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