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
85fc7747
Commit
85fc7747
authored
May 20, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notifications disabled for messages with empty text. #446
parent
3d3f1b8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
26 deletions
+20
-26
AbstractChat.java
...in/java/com/xabber/android/data/message/AbstractChat.java
+20
-26
No files found.
app/src/main/java/com/xabber/android/data/message/AbstractChat.java
View file @
85fc7747
...
...
@@ -62,56 +62,45 @@ public abstract class AbstractChat extends BaseEntity {
* Number of messages from history to be shown for context purpose.
*/
private
static
final
int
PRELOADED_MESSAGES
=
3
;
/**
* Current thread id.
* Ids of messages not loaded in to the memory.
* <p/>
* MUST BE ACCESSED FROM BACKGROUND THREAD ONLY.
*/
private
String
threadId
;
protected
final
Collection
<
Long
>
historyIds
;
/**
* Sorted list of messages in this chat.
*/
protected
final
List
<
MessageItem
>
messages
;
/**
* List of messages to be sent.
*/
protected
final
Collection
<
MessageItem
>
sendQuery
;
/**
* Whether chat is open and should be displayed as active chat.
*/
protected
boolean
active
;
/**
* Whether changes in status should be record.
*/
protected
boolean
trackStatus
;
/**
* Whether user never received notifications from this chat.
*/
protected
boolean
firstNotification
;
/**
* Last incoming message's text.
*/
protected
String
lastText
;
/**
* Last message's time.
*/
protected
Date
lastTime
;
/**
* Ids of messages not loaded in to the memory.
* <p/>
* MUST BE ACCESSED FROM BACKGROUND THREAD ONLY.
*/
protected
final
Collection
<
Long
>
historyIds
;
/**
* Sorted list of messages in this chat.
*/
protected
final
List
<
MessageItem
>
messages
;
protected
Date
creationTime
=
new
Date
();
/**
*
List of messages to be sent
.
*
Current thread id
.
*/
protected
final
Collection
<
MessageItem
>
sendQuery
;
protected
Date
creationTime
=
new
Date
();
private
String
threadId
;
private
boolean
isLastMessageIncoming
;
protected
AbstractChat
(
final
String
account
,
final
String
user
)
{
...
...
@@ -396,6 +385,11 @@ public abstract class AbstractChat extends BaseEntity {
.
getInstance
().
getSecurityLevel
(
account
,
user
)
!=
SecurityLevel
.
plain
)))
save
=
false
;
Date
timestamp
=
new
Date
();
if
(
text
.
trim
().
isEmpty
())
{
notify
=
false
;
}
if
(
notify
||
!
incoming
)
openChat
();
if
(!
incoming
)
...
...
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