Store disappearing timer when creating portal

This commit is contained in:
Tulir Asokan 2022-04-22 16:45:30 +03:00
parent 82472a76df
commit 3f8d6942d2

View file

@ -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)