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
|
||||
# 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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue