Make LoginResult.lastChannelId optional

Needed for backfilling users who have not joined any channels
This commit is contained in:
Andrew Ferrazzutti 2022-05-06 02:48:58 -04:00
parent faf174c226
commit c3b299d26c
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from typing import NewType, Union
from typing import NewType, Optional, Union
from attr import dataclass
@ -43,13 +43,13 @@ class LoginResult(SerializableAttrs):
"""Return value of TalkClient.login"""
channelList: list[LoginDataItem]
userId: Long
lastChannelId: Long
lastTokenId: Long
mcmRevision: int
removedChannelIdList: list[Long]
revision: int
revisionInfo: str
minLogId: Long
lastChannelId: Optional[Long] = None # NEW Made optional
# TODO Consider catching SerializerError for channelList entries