Rename to use source (and fix typo)

This commit is contained in:
Luke Murphy 2021-01-13 14:30:46 +01:00
parent 93ebbc65e1
commit e0c8583b2d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 3 additions and 3 deletions

View File

@ -99,8 +99,8 @@ accepts a `message` argument.
Attributes:
- **body**: the body of the message
- **sender**: the sender of the message
- **receive**: the receive of the message
- **source**: where the message came from (can be a user or a room)
- **receiver**: the receiver of the message
- **nickname**: the nickname of the sender
- **type**: the type of message (`chat` or `groupchat`)

View File

@ -21,7 +21,7 @@ class SimpleMessage:
return self.message["body"]
@property
def sender(self):
def source(self):
return self.message["from"].bare
@property