mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-19 15:17:00 +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")
|
||||
self.name = name
|
||||
self.messages = {}
|
||||
self.type = type
|
||||
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")
|
||||
elif type == Device.ANDROID:
|
||||
elif self.type == Device.ANDROID:
|
||||
self.my_avatar = None # TODO: Add Android support
|
||||
else:
|
||||
self.my_avatar = None
|
||||
|
||||
Reference in New Issue
Block a user