Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Simple-Sms
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
zhangchengbo
Simple-Sms
Commits
2c651ae9
Commit
2c651ae9
authored
Aug 26, 2025
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:添加*号过滤条件
parent
49a99dee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ThreadActivity.kt
...main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
+2
-1
ConversationsAdapter.kt
.../kotlin/com/secspace/sms/adapters/ConversationsAdapter.kt
+1
-1
No files found.
app/src/main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
View file @
2c651ae9
...
@@ -972,12 +972,13 @@ class ThreadActivity : SimpleActivity() {
...
@@ -972,12 +972,13 @@ class ThreadActivity : SimpleActivity() {
ConfirmationDialog
(
this
,
getString
(
confirmationMessage
))
{
ConfirmationDialog
(
this
,
getString
(
confirmationMessage
))
{
ensureBackgroundThread
{
ensureBackgroundThread
{
//记录被删除的Conversation会话包含[零宽度字符]的ThreadId
//记录被删除的Conversation会话包含[零宽度字符]的ThreadId
// Log.d(TAG, "getNewConversations conversation = ${Gson().toJson(conversation)} ")
conversation
?.
let
{
conversation
?.
let
{
val
listMessageData
=
getMessages
(
threadId
,
false
)
val
listMessageData
=
getMessages
(
threadId
,
false
)
// Log.d(TAG, "getNewConversations threadId = ${threadId} listMessageData = ${Gson().toJson(listMessageData)} ")
// Log.d(TAG, "getNewConversations threadId = ${threadId} listMessageData = ${Gson().toJson(listMessageData)} ")
if
(
listMessageData
.
isNotEmpty
())
{
if
(
listMessageData
.
isNotEmpty
())
{
val
listContains
:
List
<
Message
>
=
listMessageData
.
filter
{
msg
->
msg
.
body
.
contains
(
"\u200B"
)
}
val
listContains
:
List
<
Message
>
=
listMessageData
.
filter
{
msg
->
msg
.
body
.
contains
(
"\u200B"
)
}
if
(
listContains
.
isNotEmpty
()
&&
!
Constant
.
listThreadData
.
contains
(
it
.
title
))
{
if
(
listContains
.
isNotEmpty
()
&&
!
Constant
.
listThreadData
.
contains
(
it
.
title
)
&&
!
it
.
title
.
contains
(
"*"
)
)
{
Constant
.
listThreadData
.
add
(
it
.
title
)
Constant
.
listThreadData
.
add
(
it
.
title
)
// Log.d(TAG, "deleteConversations listContains长度 = ${Constant.listThreadData} ")
// Log.d(TAG, "deleteConversations listContains长度 = ${Constant.listThreadData} ")
}
}
...
...
app/src/main/kotlin/com/secspace/sms/adapters/ConversationsAdapter.kt
View file @
2c651ae9
...
@@ -141,7 +141,7 @@ class ConversationsAdapter(
...
@@ -141,7 +141,7 @@ class ConversationsAdapter(
// Log.d(TAG, "getNewConversations threadId = ${it.threadId} listMessageData = ${Gson().toJson(listMessageData)} ")
// Log.d(TAG, "getNewConversations threadId = ${it.threadId} listMessageData = ${Gson().toJson(listMessageData)} ")
if
(
listMessageData
.
isNotEmpty
())
{
if
(
listMessageData
.
isNotEmpty
())
{
val
listContains
:
List
<
Message
>
=
listMessageData
.
filter
{
msg
->
msg
.
body
.
contains
(
"\u200B"
)
}
val
listContains
:
List
<
Message
>
=
listMessageData
.
filter
{
msg
->
msg
.
body
.
contains
(
"\u200B"
)
}
if
(
listContains
.
isNotEmpty
()
&&
!
Constant
.
listThreadData
.
contains
(
it
.
title
))
{
if
(
listContains
.
isNotEmpty
()
&&
!
Constant
.
listThreadData
.
contains
(
it
.
title
)
&&
!
it
.
title
.
contains
(
"*"
)
)
{
Constant
.
listThreadData
.
add
(
it
.
title
)
Constant
.
listThreadData
.
add
(
it
.
title
)
// Log.d(TAG, "deleteConversations listContains长度 = ${Constant.listThreadData} ")
// Log.d(TAG, "deleteConversations listContains长度 = ${Constant.listThreadData} ")
}
}
...
...
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