File tree Expand file tree Collapse file tree
app/src/main/java/com/wmods/wppenhacer/xposed/features/privacy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,20 +195,25 @@ class HideSeen(loader: ClassLoader, preferences: XSharedPreferences) :
195195 val hideSeen = checkPrivacyAndHideSeen(fmessageKey)
196196 val hideReceipt = checkPrivacyAndHideReceipt(fmessageKey)
197197
198+ var isHide = false
199+
198200 if (hideReceipt) {
199201 if (typeKV == null ) {
200202 protocolTreeNodeWpp.addKeyValue(" type" , " inactive" )
201203 } else {
202204 typeKV.value = " inactive"
203205 }
206+ protocolTreeNodeWpp.removeAllKeyValuesByKey(" sts" )
207+ isHide = true
204208 } else if (hideSeen && typeKV?.value == " read" ) {
205209 protocolTreeNodeWpp.removeAllKeyValuesByKey(" sts" )
206210 protocolTreeNodeWpp.removeAllKeyValuesByKey(" type" )
211+ isHide = true
207212 }
208213
209214 if (inManualReceiptCheck.get() ? : false )return
210215
211- if (hideReceipt || hideSeen ) {
216+ if (isHide ) {
212217 MessageHistoryStore .getInstance().insertHideSeenMessage(
213218 fmessageKey.remoteJid.phoneRawString,
214219 fmessageKey.messageID,
You can’t perform that action at this time.
0 commit comments