Skip to content

Instantly share code, notes, and snippets.

@manuelvicnt
manuelvicnt / AnAndroidApp.kt
Last active Jun 1, 2021
Hilt and AssistedInject working together in Hilt v2.28-alpha times - ViewModel version
View AnAndroidApp.kt
// AssistedInject and Hilt working together in v2.28-alpha times
// Example of a ViewModel using AssistedInject injected in a Fragment by Hilt
// As AssistedInject isn't part of Dagger yet, we cannot use in
// conjuction with @ViewModelInject
data class MyInitParams(private val neededId: String)
class MyViewModel @AssistedInject constructor(
... // Other dependencies injected by Hilt
// com.squareup.inject.assisted.Assisted annotation
View ejabberd.yml
###
### ejabberd configuration file
###
### The parameters used in this configuration file are explained at
###
### https://docs.ejabberd.im/admin/configuration
###
### The configuration file is written in YAML.
### *******************************************************
### ******* !!! WARNING !!! *******
View Improvements to OMEMO.md
  • Immediately reply to incoming PreKeySignalMessages with an empty SignalMessage without user interaction to finish session creation.
  • Repair broken sessions by replying with an empty PreKeySignalMessage. (The XEP already suggests that this might be the case when a PreKeySignalMessage was received with a missing PreKey).