kopia lustrzana https://github.com/ryukoposting/Signal-Android
Add control for inserting boost message in release notes channel.
rodzic
17643bf13b
commit
b433a7b816
|
@ -210,7 +210,7 @@ class RetrieveRemoteAnnouncementsJob private constructor(private val force: Bool
|
||||||
)
|
)
|
||||||
|
|
||||||
if (insertResult != null) {
|
if (insertResult != null) {
|
||||||
addedNewNotes = true
|
addedNewNotes = addedNewNotes || (note.releaseNote.includeBoostMessage ?: true)
|
||||||
SignalDatabase.attachments.getAttachmentsForMessage(insertResult.messageId)
|
SignalDatabase.attachments.getAttachmentsForMessage(insertResult.messageId)
|
||||||
.forEach { ApplicationDependencies.getJobManager().add(AttachmentDownloadJob(insertResult.messageId, it.attachmentId, false)) }
|
.forEach { ApplicationDependencies.getJobManager().add(AttachmentDownloadJob(insertResult.messageId, it.attachmentId, false)) }
|
||||||
|
|
||||||
|
@ -370,7 +370,8 @@ class RetrieveRemoteAnnouncementsJob private constructor(private val force: Bool
|
||||||
@JsonProperty val countries: String?,
|
@JsonProperty val countries: String?,
|
||||||
@JsonProperty val androidMinVersion: String?,
|
@JsonProperty val androidMinVersion: String?,
|
||||||
@JsonProperty val link: String?,
|
@JsonProperty val link: String?,
|
||||||
@JsonProperty val ctaId: String?
|
@JsonProperty val ctaId: String?,
|
||||||
|
@JsonProperty val includeBoostMessage: Boolean?
|
||||||
)
|
)
|
||||||
|
|
||||||
data class RemoteMegaphone(
|
data class RemoteMegaphone(
|
||||||
|
|
Ładowanie…
Reference in New Issue