Make LoginResult.lastChannelId optional
Needed for backfilling users who have not joined any channels
This commit is contained in:
parent
faf174c226
commit
c3b299d26c
|
@ -13,7 +13,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# 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
|
from attr import dataclass
|
||||||
|
|
||||||
|
@ -43,13 +43,13 @@ class LoginResult(SerializableAttrs):
|
||||||
"""Return value of TalkClient.login"""
|
"""Return value of TalkClient.login"""
|
||||||
channelList: list[LoginDataItem]
|
channelList: list[LoginDataItem]
|
||||||
userId: Long
|
userId: Long
|
||||||
lastChannelId: Long
|
|
||||||
lastTokenId: Long
|
lastTokenId: Long
|
||||||
mcmRevision: int
|
mcmRevision: int
|
||||||
removedChannelIdList: list[Long]
|
removedChannelIdList: list[Long]
|
||||||
revision: int
|
revision: int
|
||||||
revisionInfo: str
|
revisionInfo: str
|
||||||
minLogId: Long
|
minLogId: Long
|
||||||
|
lastChannelId: Optional[Long] = None # NEW Made optional
|
||||||
# TODO Consider catching SerializerError for channelList entries
|
# TODO Consider catching SerializerError for channelList entries
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue