Skip to content

Commit

Permalink
Added Option to Auto Save Shared Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
RevealedSoulEven committed Aug 21, 2022
1 parent c7e13d0 commit b9ecb42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import xyz.rodit.snapmod.features.FeatureContext
import xyz.rodit.snapmod.logging.log
import xyz.rodit.snapmod.mappings.ArroyoConvertMessagesAction
import xyz.rodit.snapmod.mappings.ChatCommandSource
import xyz.rodit.snapmod.mappings.ChatContext
import xyz.rodit.snapmod.mappings.Message
import xyz.rodit.snapmod.util.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import xyz.rodit.snapmod.mappings.NotificationHandler
import xyz.rodit.snapmod.util.before
import xyz.rodit.snapmod.util.getList
import xyz.rodit.snapmod.util.toMax
import xyz.rodit.snapmod.logging.log

class FilterTypes(context: FeatureContext) : Feature(context, 84608.toMax()) {

Expand All @@ -28,7 +27,6 @@ class FilterTypes(context: FeatureContext) : Feature(context, 84608.toMax()) {

val type =
bundle.getString("type") ?: bundle.getString("n_key")?.split('~')?.get(0) ?: ""
log.debug(type)
if (hiddenTypes.contains(type.lowercase())) {
it.result = null
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<item>Images/Videos</item>
<item>Snaps</item>
<item>Notes</item>
<item>Shared</item>
</string-array>

<string-array name="auto_save_types_values">
Expand All @@ -101,6 +102,7 @@
<item>EXTERNAL_MEDIA</item>
<item>SNAP</item>
<item>NOTE</item>
<item>SHARE</item>
</string-array>

<string-array name="chat_options">
Expand Down

0 comments on commit b9ecb42

Please sign in to comment.