forked from MirrorHub/mautrix-whatsapp
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)
|
go portal.addToSpace(user)
|
||||||
|
|
||||||
if groupInfo != nil {
|
if groupInfo != nil {
|
||||||
|
if groupInfo.IsEphemeral {
|
||||||
|
portal.ExpirationTime = groupInfo.DisappearingTimer
|
||||||
|
portal.Update()
|
||||||
|
}
|
||||||
portal.SyncParticipants(user, groupInfo)
|
portal.SyncParticipants(user, groupInfo)
|
||||||
if groupInfo.IsAnnounce {
|
if groupInfo.IsAnnounce {
|
||||||
portal.RestrictMessageSending(groupInfo.IsAnnounce)
|
portal.RestrictMessageSending(groupInfo.IsAnnounce)
|
||||||
|
|
Loading…
Reference in a new issue