mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-27 16:24:53 +00:00
Store the device type
This commit is contained in:
@@ -10,10 +10,11 @@ class ChatStore():
|
|||||||
raise TypeError("Name must be a string or None")
|
raise TypeError("Name must be a string or None")
|
||||||
self.name = name
|
self.name = name
|
||||||
self.messages = {}
|
self.messages = {}
|
||||||
|
self.type = type
|
||||||
if media is not None:
|
if media is not None:
|
||||||
if type == Device.IOS:
|
if self.type == Device.IOS:
|
||||||
self.my_avatar = os.path.join(media, "Media/Profile/Photo.jpg")
|
self.my_avatar = os.path.join(media, "Media/Profile/Photo.jpg")
|
||||||
elif type == Device.ANDROID:
|
elif self.type == Device.ANDROID:
|
||||||
self.my_avatar = None # TODO: Add Android support
|
self.my_avatar = None # TODO: Add Android support
|
||||||
else:
|
else:
|
||||||
self.my_avatar = None
|
self.my_avatar = None
|
||||||
|
|||||||
Reference in New Issue
Block a user