mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add call link support to storage service.
This commit is contained in:
committed by
Cody Henthorne
parent
1f2b5e90a3
commit
e247d311d8
@@ -1336,12 +1336,6 @@ object SyncMessageProcessor {
|
||||
}
|
||||
|
||||
val roomId = CallLinkRoomId.fromCallLinkRootKey(callLinkRootKey)
|
||||
if (callLinkUpdate.type == CallLinkUpdate.Type.DELETE) {
|
||||
log(envelopeTimestamp, "Synchronize call link deletion.")
|
||||
SignalDatabase.callLinks.deleteCallLink(roomId)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if (SignalDatabase.callLinks.callLinkExists(roomId)) {
|
||||
log(envelopeTimestamp, "Synchronize call link for a link we already know about. Updating credentials.")
|
||||
@@ -1362,9 +1356,12 @@ object SyncMessageProcessor {
|
||||
linkKeyBytes = callLinkRootKey.keyBytes,
|
||||
adminPassBytes = callLinkUpdate.adminPassKey?.toByteArray()
|
||||
),
|
||||
state = SignalCallLinkState()
|
||||
state = SignalCallLinkState(),
|
||||
deletionTimestamp = 0L
|
||||
)
|
||||
)
|
||||
|
||||
StorageSyncHelper.scheduleSyncForDataChange()
|
||||
}
|
||||
|
||||
AppDependencies.jobManager.add(RefreshCallLinkDetailsJob(callLinkUpdate))
|
||||
|
||||
Reference in New Issue
Block a user