Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
895c4114
Commit
895c4114
authored
Jan 21, 2016
by
Christian Schudt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #522 from guusdk/OF-1046
OF-1046: Improve offline-storage usage
parents
df47742b
0979bfa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
OfflineMessageStrategy.java
...ava/org/jivesoftware/openfire/OfflineMessageStrategy.java
+4
-1
No files found.
src/java/org/jivesoftware/openfire/OfflineMessageStrategy.java
View file @
895c4114
...
...
@@ -148,12 +148,15 @@ public class OfflineMessageStrategy extends BasicModule implements ServerFeature
store
(
message
);
}
else
{
Log
.
debug
(
"Unable to store, as user is over storage quota. Bouncing message instead: "
+
message
.
toXML
()
);
bounce
(
message
);
}
break
;
case
store_and_drop:
if
(
underQuota
(
message
))
{
store
(
message
);
}
else
{
Log
.
debug
(
"Unable to store, as user is over storage quota. Silently dropping message: "
+
message
.
toXML
()
);
}
break
;
case
drop:
...
...
@@ -200,7 +203,7 @@ public class OfflineMessageStrategy extends BasicModule implements ServerFeature
private
void
bounce
(
Message
message
)
{
// Do nothing if the sender was the server itself
if
(
message
.
getFrom
()
==
null
)
{
if
(
message
.
getFrom
()
==
null
||
message
.
getFrom
().
equals
(
serverAddress
)
)
{
return
;
}
try
{
...
...
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