mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 01:14:29 +01:00
Store disappearing timer when creating portal
This commit is contained in:
parent
82472a76df
commit
3f8d6942d2
1 changed files with 4 additions and 0 deletions
|
@ -1310,6 +1310,10 @@ func (portal *Portal) CreateMatrixRoom(user *User, groupInfo *types.GroupInfo, i
|
|||
go portal.addToSpace(user)
|
||||
|
||||
if groupInfo != nil {
|
||||
if groupInfo.IsEphemeral {
|
||||
portal.ExpirationTime = groupInfo.DisappearingTimer
|
||||
portal.Update()
|
||||
}
|
||||
portal.SyncParticipants(user, groupInfo)
|
||||
if groupInfo.IsAnnounce {
|
||||
portal.RestrictMessageSending(groupInfo.IsAnnounce)
|
||||
|
|
Loading…
Reference in a new issue