Skip to content

Commit e3cfe3d

Browse files
committed
fix typo
1 parent d4f834b commit e3cfe3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

wechaty/src/main/kotlin/io/github/wechaty/Wechaty.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
3737
val contactManager = ContactManager(this)
3838
val messageManager = MessageManager(this)
3939
val roomManager = RoomManager(this)
40-
val roomInvitationMessager = RoomInvitationManager(this)
41-
val imageMessager = ImageManager(this)
40+
val roomInvitationManager = RoomInvitationManager(this)
41+
val imageManager = ImageManager(this)
4242

4343
init {
4444
// this.memory = wechatyOptions.memory
@@ -278,7 +278,7 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
278278
EventEnum.ROOM_INVITE -> {
279279
puppet.on(it, object : PuppetRoomInviteListener {
280280
override fun handler(payload: EventRoomInvitePayload) {
281-
val roomInvitation = roomInvitationMessager.load(payload.roomInvitationId)
281+
val roomInvitation = roomInvitationManager.load(payload.roomInvitationId)
282282
emit(EventEnum.ROOM_INVITE, roomInvitation)
283283
}
284284
})

wechaty/src/main/kotlin/io/github/wechaty/user/Message.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ open class Message(wechaty: Wechaty,val id: String) : Sayable, Accessory(wechaty
291291
if(this.type() != MessageType.Image){
292292
throw Exception("not a image type, type is "+ this.type())
293293
}
294-
return wechaty.imageMessager.create(this.id);
294+
return wechaty.imageManager.create(this.id);
295295
}
296296

297297
fun toContact():Contact{

0 commit comments

Comments
 (0)