mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 19:17:41 +00:00
refactor: closed groups delete for yourself and handle unsend request if it's from yourself or author now
This commit is contained in:
@@ -144,7 +144,8 @@ private fun handleConfigurationMessage(message: ConfigurationMessage) {
|
||||
}
|
||||
|
||||
fun MessageReceiver.handleUnsendRequest(message: UnsendRequest) {
|
||||
if (message.sender != message.author) { return }
|
||||
val userPublicKey = MessagingModuleConfiguration.shared.storage.getUserPublicKey()
|
||||
if (message.sender != message.author && (message.sender != userPublicKey && userPublicKey != null)) { return }
|
||||
val context = MessagingModuleConfiguration.shared.context
|
||||
val storage = MessagingModuleConfiguration.shared.storage
|
||||
val messageDataProvider = MessagingModuleConfiguration.shared.messageDataProvider
|
||||
|
Reference in New Issue
Block a user