Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
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
xabber-android
Commits
bbb36bd8
Commit
bbb36bd8
authored
Sep 14, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RoomChat: "delivery reports" for MUC.
parent
cfacfedc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
RoomChat.java
.../java/com/xabber/android/data/extension/muc/RoomChat.java
+3
-0
MessageItem.java
...ain/java/com/xabber/android/data/message/MessageItem.java
+1
-1
No files found.
xabber/src/main/java/com/xabber/android/data/extension/muc/RoomChat.java
View file @
bbb36bd8
...
@@ -228,6 +228,9 @@ public class RoomChat extends AbstractChat {
...
@@ -228,6 +228,9 @@ public class RoomChat extends AbstractChat {
for
(
MessageItem
messageItem
:
messages
)
{
for
(
MessageItem
messageItem
:
messages
)
{
// Search for duplicates
// Search for duplicates
if
(
packetID
!=
null
&&
packetID
.
equals
(
messageItem
.
getPacketID
()))
{
if
(
packetID
!=
null
&&
packetID
.
equals
(
messageItem
.
getPacketID
()))
{
// Server send our own message back
messageItem
.
markAsDelivered
();
RosterManager
.
getInstance
().
onContactChanged
(
account
,
user
);
return
true
;
return
true
;
}
}
if
(
delay
!=
null
)
{
if
(
delay
!=
null
)
{
...
...
xabber/src/main/java/com/xabber/android/data/message/MessageItem.java
View file @
bbb36bd8
...
@@ -211,7 +211,7 @@ public class MessageItem implements Comparable<MessageItem> {
...
@@ -211,7 +211,7 @@ public class MessageItem implements Comparable<MessageItem> {
read
=
true
;
read
=
true
;
}
}
void
markAsDelivered
()
{
public
void
markAsDelivered
()
{
delivered
=
true
;
delivered
=
true
;
}
}
...
...
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